summaryrefslogtreecommitdiff
path: root/packages/demobank-ui/src/pages/WalletWithdrawForm.tsx
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2023-10-30 19:23:46 -0300
committerSebastian <sebasjm@gmail.com>2023-10-30 19:23:46 -0300
commitd95357381a0a492426be767434c55b489e01c041 (patch)
tree10f46fb70950313f919a0c41db05cf9abed5baed /packages/demobank-ui/src/pages/WalletWithdrawForm.tsx
parentf1967ab0baf825cdfa767d36bb7cce78521e4e4b (diff)
downloadwallet-core-d95357381a0a492426be767434c55b489e01c041.tar.gz
wallet-core-d95357381a0a492426be767434c55b489e01c041.tar.bz2
wallet-core-d95357381a0a492426be767434c55b489e01c041.zip
add the account-not-found case when doing a transaction
Diffstat (limited to 'packages/demobank-ui/src/pages/WalletWithdrawForm.tsx')
-rw-r--r--packages/demobank-ui/src/pages/WalletWithdrawForm.tsx11
1 files changed, 10 insertions, 1 deletions
diff --git a/packages/demobank-ui/src/pages/WalletWithdrawForm.tsx b/packages/demobank-ui/src/pages/WalletWithdrawForm.tsx
index abdebf9bf..e3a713fdd 100644
--- a/packages/demobank-ui/src/pages/WalletWithdrawForm.tsx
+++ b/packages/demobank-ui/src/pages/WalletWithdrawForm.tsx
@@ -121,6 +121,15 @@ function OldWithdrawalForm({ goToConfirmOperation, limit, onCancel, focus }: {
})
break;
}
+ case "account-not-found": {
+ notify({
+ type: "error",
+ title: i18n.str`Account not found`,
+ description: resp.detail.hint as TranslatedString,
+ debug: resp.detail,
+ })
+ break;
+ }
default: assertUnreachable(resp)
}
}
@@ -135,7 +144,7 @@ function OldWithdrawalForm({ goToConfirmOperation, limit, onCancel, focus }: {
e.preventDefault()
}}
>
- <ShowLocalNotification notification={notification} />
+ <ShowLocalNotification notification={notification} />
<div class="px-4 py-6 ">
<div class="grid max-w-xs grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-6">