diff options
author | Sebastian <sebasjm@gmail.com> | 2024-01-05 12:29:53 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2024-01-05 12:29:53 -0300 |
commit | 1b9db448dc3dd4893c484c63cf459d7d9250e693 (patch) | |
tree | 0c6ee58d8518412bbf782f0f43d1f467166bf437 /packages/demobank-ui | |
parent | 5208df82d61091bb5492b215d2acf842e89fc048 (diff) |
towards new 2fa
Diffstat (limited to 'packages/demobank-ui')
-rw-r--r-- | packages/demobank-ui/src/pages/account/ShowAccountDetails.tsx | 4 | ||||
-rw-r--r-- | packages/demobank-ui/src/pages/business/CreateCashout.tsx | 10 |
2 files changed, 4 insertions, 10 deletions
diff --git a/packages/demobank-ui/src/pages/account/ShowAccountDetails.tsx b/packages/demobank-ui/src/pages/account/ShowAccountDetails.tsx index 1f2d67c49..4b66c0d8d 100644 --- a/packages/demobank-ui/src/pages/account/ShowAccountDetails.tsx +++ b/packages/demobank-ui/src/pages/account/ShowAccountDetails.tsx @@ -89,9 +89,9 @@ export function ShowAccountDetails({ description: resp.detail.hint as TranslatedString, debug: resp.detail, }) - case "user-cant-change-contact": return notify({ + case "missing-contact-data": return notify({ type: "error", - title: i18n.str`You can't change the contact info, please contact the your account administrator.`, + title: i18n.str`You need contact data to enable 2FA.`, description: resp.detail.hint as TranslatedString, debug: resp.detail, }) diff --git a/packages/demobank-ui/src/pages/business/CreateCashout.tsx b/packages/demobank-ui/src/pages/business/CreateCashout.tsx index 8987accd1..92c80ea38 100644 --- a/packages/demobank-ui/src/pages/business/CreateCashout.tsx +++ b/packages/demobank-ui/src/pages/business/CreateCashout.tsx @@ -212,12 +212,6 @@ export function CreateCashout({ description: resp.detail.hint as TranslatedString, debug: resp.detail, }); - case "no-contact-info": return notify({ - type: "error", - title: i18n.str`Missing contact info before to create the cashout`, - description: resp.detail.hint as TranslatedString, - debug: resp.detail, - }); case "no-enough-balance": return notify({ type: "error", title: i18n.str`The account does not have sufficient funds`, @@ -230,9 +224,9 @@ export function CreateCashout({ description: resp.detail.hint as TranslatedString, debug: resp.detail, }); - case "tan-failed": return notify({ + case "no-cashout-uri": return notify({ type: "error", - title: i18n.str`Sending the confirmation code failed.`, + title: i18n.str`Missing cashout URI in the profile`, description: resp.detail.hint as TranslatedString, debug: resp.detail, }); |