aboutsummaryrefslogtreecommitdiff
path: root/packages/demobank-ui/src/pages/account/ShowAccountDetails.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'packages/demobank-ui/src/pages/account/ShowAccountDetails.tsx')
-rw-r--r--packages/demobank-ui/src/pages/account/ShowAccountDetails.tsx18
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)
}
}