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/OperationState | |
parent | f1967ab0baf825cdfa767d36bb7cce78521e4e4b (diff) | |
download | wallet-core-d95357381a0a492426be767434c55b489e01c041.tar.xz |
add the account-not-found case when doing a transaction
Diffstat (limited to 'packages/demobank-ui/src/pages/OperationState')
-rw-r--r-- | packages/demobank-ui/src/pages/OperationState/views.tsx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/demobank-ui/src/pages/OperationState/views.tsx b/packages/demobank-ui/src/pages/OperationState/views.tsx index 4001fd093..ea38525b9 100644 --- a/packages/demobank-ui/src/pages/OperationState/views.tsx +++ b/packages/demobank-ui/src/pages/OperationState/views.tsx @@ -338,6 +338,12 @@ export function FailedView({ error }: State.Failed) { {error.detail.hint} </div> </Attention> + case "account-not-found": return <Attention type="danger" + title={i18n.str`The operation was rejected due to insufficient funds.`}> + <div class="mt-2 text-sm text-red-700"> + {error.detail.hint} + </div> + </Attention> default: assertUnreachable(error) } } |