diff options
author | Sebastian <sebasjm@gmail.com> | 2024-02-09 12:17:30 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2024-02-09 12:17:33 -0300 |
commit | 59fa89ab7a824f4c372896aba09dc247f048adf0 (patch) | |
tree | 933716d94befacdc13d38062ab71e901172a7b9f /packages/merchant-backoffice-ui/src/paths | |
parent | 8055f8834974773170f83c7013174e141ced53cb (diff) | |
download | wallet-core-59fa89ab7a824f4c372896aba09dc247f048adf0.tar.xz |
fix #8356: warn about no accounts for admin, prevent using the instance without bank account for non-admin
Diffstat (limited to 'packages/merchant-backoffice-ui/src/paths')
-rw-r--r-- | packages/merchant-backoffice-ui/src/paths/instance/accounts/list/index.tsx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/merchant-backoffice-ui/src/paths/instance/accounts/list/index.tsx b/packages/merchant-backoffice-ui/src/paths/instance/accounts/list/index.tsx index 100241e22..04b6c51fd 100644 --- a/packages/merchant-backoffice-ui/src/paths/instance/accounts/list/index.tsx +++ b/packages/merchant-backoffice-ui/src/paths/instance/accounts/list/index.tsx @@ -74,7 +74,13 @@ export default function ListOtpDevices({ return ( <Fragment> <NotificationCard notification={notif} /> - + {result.data.accounts.length < 1 && + <NotificationCard notification={{ + type: "WARN", + message: i18n.str`You need to associate a bank account to receive revenue.`, + description: i18n.str`Without this the merchant backend will refuse to create new orders.` + }} /> + } <ListPage devices={result.data.accounts} onLoadMoreBefore={ |