summaryrefslogtreecommitdiff
path: root/packages/demobank-ui/src/pages/WithdrawalConfirmationQuestion.tsx
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2023-12-08 12:57:28 -0300
committerSebastian <sebasjm@gmail.com>2023-12-08 12:57:28 -0300
commitbe741548a5c9325164bccc90056d490e85842e69 (patch)
tree13df131a95e3b08be39e0a4f5c6a555d57518ed7 /packages/demobank-ui/src/pages/WithdrawalConfirmationQuestion.tsx
parent13f397521c0bb2b1587fa287de5be49c74f69d12 (diff)
downloadwallet-core-be741548a5c9325164bccc90056d490e85842e69.tar.gz
wallet-core-be741548a5c9325164bccc90056d490e85842e69.tar.bz2
wallet-core-be741548a5c9325164bccc90056d490e85842e69.zip
error handling
Diffstat (limited to 'packages/demobank-ui/src/pages/WithdrawalConfirmationQuestion.tsx')
-rw-r--r--packages/demobank-ui/src/pages/WithdrawalConfirmationQuestion.tsx20
1 files changed, 9 insertions, 11 deletions
diff --git a/packages/demobank-ui/src/pages/WithdrawalConfirmationQuestion.tsx b/packages/demobank-ui/src/pages/WithdrawalConfirmationQuestion.tsx
index 3af619c2d..43b88ccd8 100644
--- a/packages/demobank-ui/src/pages/WithdrawalConfirmationQuestion.tsx
+++ b/packages/demobank-ui/src/pages/WithdrawalConfirmationQuestion.tsx
@@ -26,8 +26,9 @@ import {
} from "@gnu-taler/taler-util";
import {
Attention,
- ErrorLoading,
Loading,
+ LocalNotificationBanner,
+ ShowInputErrorLabel,
notifyInfo,
useLocalNotification,
useTranslationContext
@@ -35,19 +36,16 @@ import {
import { ComponentChildren, Fragment, VNode, h } from "preact";
import { useMemo, useState } from "preact/hooks";
import { mutate } from "swr";
-import { ShowInputErrorLabel } from "@gnu-taler/web-util/browser";
+import { ErrorLoadingWithDebug } from "../components/ErrorLoadingWithDebug.js";
import { useBankCoreApiContext } from "../context/config.js";
+import { useWithdrawalDetails } from "../hooks/access.js";
+import { useBackendState } from "../hooks/backend.js";
import { usePreferences } from "../hooks/preferences.js";
-import { undefinedIfEmpty, withRuntimeErrorHandling } from "../utils.js";
+import { undefinedIfEmpty } from "../utils.js";
+import { LoginForm } from "./LoginForm.js";
import { RenderAmount } from "./PaytoWireTransferForm.js";
import { assertUnreachable } from "./WithdrawalOperationPage.js";
-import { LocalNotificationBanner } from "@gnu-taler/web-util/browser";
-import { useBackendState } from "../hooks/backend.js";
-import { useWithdrawalDetails } from "../hooks/access.js";
-import { OperationState } from "./OperationState/index.js";
import { OperationNotFound } from "./WithdrawalQRCode.js";
-import { ErrorLoadingWithDebug } from "../components/ErrorLoadingWithDebug.js";
-import { LoginForm } from "./LoginForm.js";
const logger = new Logger("WithdrawalConfirmationQuestion");
@@ -343,13 +341,13 @@ export function ShouldBeSameUser({ username, children }: { username: string, chi
if (credentials.status === "loggedOut") {
return <Fragment>
<Attention type="info" title={i18n.str`Authentication required`} />
- <LoginForm currentUser={username} fixedUser/>
+ <LoginForm currentUser={username} fixedUser />
</Fragment>
}
if (credentials.username !== username) {
return <Fragment>
<Attention type="warning" title={i18n.str`This operation was created with other username`} />
- <LoginForm currentUser={username} fixedUser/>
+ <LoginForm currentUser={username} fixedUser />
</Fragment>
}
return <Fragment>