diff options
Diffstat (limited to 'packages/demobank-ui/src/components')
-rw-r--r-- | packages/demobank-ui/src/components/Transactions/state.ts | 4 | ||||
-rw-r--r-- | packages/demobank-ui/src/components/Transactions/stories.tsx | 5 |
2 files changed, 3 insertions, 6 deletions
diff --git a/packages/demobank-ui/src/components/Transactions/state.ts b/packages/demobank-ui/src/components/Transactions/state.ts index 4f99ed678..09c039055 100644 --- a/packages/demobank-ui/src/components/Transactions/state.ts +++ b/packages/demobank-ui/src/components/Transactions/state.ts @@ -70,9 +70,7 @@ export function useComponentState({ account }: Props): State { } const when: AbsoluteTime = !date ? AbsoluteTime.never() - : { - t_ms: date, - }; + : AbsoluteTime.fromMilliseconds(date); const amount = Amounts.parse(`${anyItem.currency}:${anyItem.amount}`); const subject = anyItem.subject; return { diff --git a/packages/demobank-ui/src/components/Transactions/stories.tsx b/packages/demobank-ui/src/components/Transactions/stories.tsx index 2dedeb01c..17e234cc7 100644 --- a/packages/demobank-ui/src/components/Transactions/stories.tsx +++ b/packages/demobank-ui/src/components/Transactions/stories.tsx @@ -21,6 +21,7 @@ import * as tests from "@gnu-taler/web-util/testing"; import { ReadyView } from "./views.js"; +import { AbsoluteTime } from "@gnu-taler/taler-util"; export default { title: "transaction list", @@ -37,9 +38,7 @@ export const Ready = tests.createExample(ReadyView, { counterpart: "ASD", negative: false, subject: "Some", - when: { - t_ms: new Date().getTime(), - }, + when: AbsoluteTime.now(), }, ], }); |