From be741548a5c9325164bccc90056d490e85842e69 Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Fri, 8 Dec 2023 12:57:28 -0300
Subject: error handling

---
 .../src/pages/WithdrawalConfirmationQuestion.tsx     | 20 +++++++++-----------
 1 file changed, 9 insertions(+), 11 deletions(-)

(limited to 'packages/demobank-ui/src/pages/WithdrawalConfirmationQuestion.tsx')

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>
-- 
cgit v1.2.3

