diff options
Diffstat (limited to 'packages/demobank-ui/src/pages/WithdrawalQRCode.tsx')
-rw-r--r-- | packages/demobank-ui/src/pages/WithdrawalQRCode.tsx | 7 |
1 files changed, 5 insertions, 2 deletions
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) |