From d95357381a0a492426be767434c55b489e01c041 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 30 Oct 2023 19:23:46 -0300 Subject: add the account-not-found case when doing a transaction --- packages/demobank-ui/src/pages/WalletWithdrawForm.tsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'packages/demobank-ui/src/pages/WalletWithdrawForm.tsx') 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() }} > - +
-- cgit v1.2.3