diff options
author | Sebastian <sebasjm@gmail.com> | 2023-12-13 14:24:33 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-12-13 14:24:33 -0300 |
commit | 145c36e9ba549b7ccc72a29eaf102879011060a4 (patch) | |
tree | 3097fb8091f62b26026fe6cb90194fce3e97e99f /packages/demobank-ui/src/pages/account/ShowAccountDetails.tsx | |
parent | c29d3e6c94861cd9afd743e9391cd60b382d1ee4 (diff) | |
download | wallet-core-145c36e9ba549b7ccc72a29eaf102879011060a4.tar.xz |
up to date with latest libeufin api
Diffstat (limited to 'packages/demobank-ui/src/pages/account/ShowAccountDetails.tsx')
-rw-r--r-- | packages/demobank-ui/src/pages/account/ShowAccountDetails.tsx | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/packages/demobank-ui/src/pages/account/ShowAccountDetails.tsx b/packages/demobank-ui/src/pages/account/ShowAccountDetails.tsx index cb03ae2a1..1f2d67c49 100644 --- a/packages/demobank-ui/src/pages/account/ShowAccountDetails.tsx +++ b/packages/demobank-ui/src/pages/account/ShowAccountDetails.tsx @@ -71,12 +71,6 @@ export function ShowAccountDetails({ description: resp.detail.hint as TranslatedString, debug: resp.detail, }) - case "admin-cant-be-exchange": return notify({ - type: "error", - title: i18n.str`This is an administration account, changing to exchange account is denied.`, - description: resp.detail.hint as TranslatedString, - debug: resp.detail, - }) case "user-cant-change-name": return notify({ type: "error", title: i18n.str`You can't change the legal name, please contact the your account administrator.`, @@ -89,6 +83,18 @@ export function ShowAccountDetails({ description: resp.detail.hint as TranslatedString, debug: resp.detail, }) + case "user-cant-change-cashout": return notify({ + type: "error", + title: i18n.str`You can't change the cashout address, please contact the your account administrator.`, + description: resp.detail.hint as TranslatedString, + debug: resp.detail, + }) + case "user-cant-change-contact": return notify({ + type: "error", + title: i18n.str`You can't change the contact info, please contact the your account administrator.`, + description: resp.detail.hint as TranslatedString, + debug: resp.detail, + }) default: assertUnreachable(resp) } } |