diff options
author | Florian Dold <florian@dold.me> | 2023-05-26 13:52:00 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-05-26 13:52:00 +0200 |
commit | 96d9ea3840626f71efe38018b75748d8338565fa (patch) | |
tree | d1f04ecbb58750af79b3d0cb0420ba4fdf6d05a2 /packages/demobank-ui/src/components/Transactions/state.ts | |
parent | cd8f76db61f4a1ab1a8a8a4d29b2f3e863b59854 (diff) | |
download | wallet-core-96d9ea3840626f71efe38018b75748d8338565fa.tar.xz |
taler-util,wallet-core: make AbsoluteTime opaque
Diffstat (limited to 'packages/demobank-ui/src/components/Transactions/state.ts')
-rw-r--r-- | packages/demobank-ui/src/components/Transactions/state.ts | 4 |
1 files changed, 1 insertions, 3 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 { |