diff options
author | Sebastian <sebasjm@gmail.com> | 2023-12-04 09:43:03 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-12-04 09:43:23 -0300 |
commit | 8407a1d52e3a89f9c005f9820586d2d0a123c177 (patch) | |
tree | 2e467910a656f5b34758b4b4d2ceb9e8f41cfc00 /packages/demobank-ui/src/pages/WithdrawalQRCode.tsx | |
parent | 8616c67de8de79a39298299eac9dc368749bfc7a (diff) | |
download | wallet-core-8407a1d52e3a89f9c005f9820586d2d0a123c177.tar.xz |
api sync, withdrawal info without password, account creation WIP
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) |