diff options
Diffstat (limited to 'packages/taler-wallet-webextension/src/wallet/Transaction.stories.tsx')
-rw-r--r-- | packages/taler-wallet-webextension/src/wallet/Transaction.stories.tsx | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/packages/taler-wallet-webextension/src/wallet/Transaction.stories.tsx b/packages/taler-wallet-webextension/src/wallet/Transaction.stories.tsx index 7b6ac1fdc..f02938420 100644 --- a/packages/taler-wallet-webextension/src/wallet/Transaction.stories.tsx +++ b/packages/taler-wallet-webextension/src/wallet/Transaction.stories.tsx @@ -21,6 +21,7 @@ import { PaymentStatus, + TalerProtocolTimestamp, TransactionCommon, TransactionDeposit, TransactionPayment, @@ -53,9 +54,7 @@ const commonTransaction = { amountRaw: "KUDOS:11", amountEffective: "KUDOS:9.2", pending: false, - timestamp: { - t_ms: new Date().getTime(), - }, + timestamp: TalerProtocolTimestamp.now(), transactionId: "12", } as TransactionCommon; @@ -144,18 +143,14 @@ export const Withdraw = createExample(TestedComponent, { export const WithdrawOneMinuteAgo = createExample(TestedComponent, { transaction: { ...exampleData.withdraw, - timestamp: { - t_ms: new Date().getTime() - 60 * 1000, - }, + timestamp: TalerProtocolTimestamp.fromSeconds(new Date().getTime() - 60), }, }); export const WithdrawOneMinuteAgoAndPending = createExample(TestedComponent, { transaction: { ...exampleData.withdraw, - timestamp: { - t_ms: new Date().getTime() - 60 * 1000, - }, + timestamp: TalerProtocolTimestamp.fromSeconds(new Date().getTime() - 60), pending: true, }, }); |