aboutsummaryrefslogtreecommitdiff
path: root/packages/exchange-backoffice-ui/src/pages/NewFormEntry.tsx
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2023-05-26 10:09:56 -0300
committerSebastian <sebasjm@gmail.com>2023-05-26 10:09:56 -0300
commit77fb6c0d88e9889199c0e859dbade53f638ddfd4 (patch)
tree889e477fbdcbb9c9803b51eca2b3bf5284ee0b0b /packages/exchange-backoffice-ui/src/pages/NewFormEntry.tsx
parente3d046457b53fa1dc5b0cd446ebdeb9b22e2dfe7 (diff)
downloadwallet-core-77fb6c0d88e9889199c0e859dbade53f638ddfd4.tar.xz
fix compile
Diffstat (limited to 'packages/exchange-backoffice-ui/src/pages/NewFormEntry.tsx')
-rw-r--r--packages/exchange-backoffice-ui/src/pages/NewFormEntry.tsx6
1 files changed, 2 insertions, 4 deletions
diff --git a/packages/exchange-backoffice-ui/src/pages/NewFormEntry.tsx b/packages/exchange-backoffice-ui/src/pages/NewFormEntry.tsx
index 9c143addd..fdb255701 100644
--- a/packages/exchange-backoffice-ui/src/pages/NewFormEntry.tsx
+++ b/packages/exchange-backoffice-ui/src/pages/NewFormEntry.tsx
@@ -3,7 +3,7 @@ import { allForms } from "./AntiMoneyLaunderingForm.js";
import { Pages } from "../pages.js";
import { NiceForm } from "../NiceForm.js";
import { AmlState } from "../types.js";
-import { Amounts } from "@gnu-taler/taler-util";
+import { AbsoluteTime, Amounts } from "@gnu-taler/taler-util";
export function NewFormEntry({
account,
@@ -26,9 +26,7 @@ export function NewFormEntry({
const showingFrom = allForms[selectedForm].impl;
const initial = {
fullName: "loggedIn_user_fullname",
- when: {
- t_ms: new Date().getTime(),
- },
+ when: AbsoluteTime.now(),
state: AmlState.pending,
threshold: Amounts.parseOrThrow("USD:10"),
};