From 8407a1d52e3a89f9c005f9820586d2d0a123c177 Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Mon, 4 Dec 2023 09:43:03 -0300
Subject: api sync, withdrawal info without password, account creation WIP

---
 packages/demobank-ui/src/pages/WithdrawalQRCode.tsx | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

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

diff --git a/packages/demobank-ui/src/pages/WithdrawalQRCode.tsx b/packages/demobank-ui/src/pages/WithdrawalQRCode.tsx
index 0c3d83c3b..f07790493 100644
--- a/packages/demobank-ui/src/pages/WithdrawalQRCode.tsx
+++ b/packages/demobank-ui/src/pages/WithdrawalQRCode.tsx
@@ -30,6 +30,7 @@ import { useWithdrawalDetails } from "../hooks/access.js";
 import { QrCodeSection } from "./QrCodeSection.js";
 import { WithdrawalConfirmationQuestion } from "./WithdrawalConfirmationQuestion.js";
 import { assertUnreachable } from "./WithdrawalOperationPage.js";
+import { ErrorLoadingWithDebug } from "../components/ErrorLoadingWithDebug.js";
 
 const logger = new Logger("WithdrawalQRCode");
 
@@ -53,12 +54,13 @@ export function WithdrawalQRCode({
     return <Loading />
   }
   if (result instanceof TalerError) {
-    return <ErrorLoading error={result} />
+    return <ErrorLoadingWithDebug error={result} />
   }
   if (result.type === "fail") {
     switch (result.case) {
+      case "invalid-id":
       case "not-found": return <OperationNotFound onClose={onClose} />
-      default: assertUnreachable(result.case)
+      default: assertUnreachable(result)
     }
   }
 
@@ -159,6 +161,7 @@ export function WithdrawalQRCode({
     <WithdrawalConfirmationQuestion
       withdrawUri={withdrawUri}
       details={{
+        username: data.username,
         account,
         reserve: data.selected_reserve_pub,
         amount: Amounts.parseOrThrow(data.amount)
-- 
cgit v1.2.3

