diff options
author | Sebastian <sebasjm@gmail.com> | 2023-10-30 19:23:46 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-10-30 19:23:46 -0300 |
commit | d95357381a0a492426be767434c55b489e01c041 (patch) | |
tree | 10f46fb70950313f919a0c41db05cf9abed5baed /packages/demobank-ui/src/pages/WalletWithdrawForm.tsx | |
parent | f1967ab0baf825cdfa767d36bb7cce78521e4e4b (diff) | |
download | wallet-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.tsx | 11 |
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"> |