summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2024-03-11 15:01:20 -0300
committerSebastian <sebasjm@gmail.com>2024-03-11 15:01:20 -0300
commitf232d51c008872fe2ba5c1d12d8cafdc7fa274f0 (patch)
treea54c6dc999274ba3e4be1a54f1527c50aab6ea4b
parent9c16a25883e9dc03768bfbef6da330260149d74f (diff)
downloadwallet-core-f232d51c008872fe2ba5c1d12d8cafdc7fa274f0.tar.gz
wallet-core-f232d51c008872fe2ba5c1d12d8cafdc7fa274f0.tar.bz2
wallet-core-f232d51c008872fe2ba5c1d12d8cafdc7fa274f0.zip
fix broken build
-rw-r--r--packages/aml-backoffice-ui/src/pages/NewFormEntry.tsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/aml-backoffice-ui/src/pages/NewFormEntry.tsx b/packages/aml-backoffice-ui/src/pages/NewFormEntry.tsx
index ee31ed7a8..df97cc3a4 100644
--- a/packages/aml-backoffice-ui/src/pages/NewFormEntry.tsx
+++ b/packages/aml-backoffice-ui/src/pages/NewFormEntry.tsx
@@ -1,4 +1,4 @@
-import { Amounts, HttpStatusCode, TalerExchangeApi, TalerProtocolTimestamp, TranslatedString } from "@gnu-taler/taler-util";
+import { AbsoluteTime, Amounts, HttpStatusCode, TalerExchangeApi, TalerProtocolTimestamp, TranslatedString } from "@gnu-taler/taler-util";
import { LocalNotificationBanner, useLocalNotification, useTranslationContext } from "@gnu-taler/web-util/browser";
import { Fragment, VNode, h } from "preact";
import { useExchangeApiContext } from "../context/config.js";
@@ -60,18 +60,21 @@ export function NewFormEntry({
title: i18n.str`Wrong credentials for "${officer.account}"`,
description: resp.detail.hint as TranslatedString,
debug: resp.detail,
+ when: AbsoluteTime.now(),
})
case HttpStatusCode.NotFound: return notify({
type: "error",
title: i18n.str`Officer or account not found`,
description: resp.detail.hint as TranslatedString,
debug: resp.detail,
+ when: AbsoluteTime.now(),
})
case HttpStatusCode.Conflict: return notify({
type: "error",
title: i18n.str`Officer disabled or more recent decision was already submitted.`,
description: resp.detail.hint as TranslatedString,
debug: resp.detail,
+ when: AbsoluteTime.now(),
})
}
})