diff options
author | Sebastian <sebasjm@gmail.com> | 2024-01-19 17:09:43 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2024-01-19 17:09:52 -0300 |
commit | d845c0cf225a0f05214f368f4a98257238f53d07 (patch) | |
tree | 756d754f3c1c85460f01b4b5068aa02e4c0760a6 /packages/demobank-ui/src/pages/RegistrationPage.tsx | |
parent | a04e822af063951d39f4ddc597cd163037cb5010 (diff) | |
download | wallet-core-d845c0cf225a0f05214f368f4a98257238f53d07.tar.gz wallet-core-d845c0cf225a0f05214f368f4a98257238f53d07.tar.bz2 wallet-core-d845c0cf225a0f05214f368f4a98257238f53d07.zip |
fixes #8147
Diffstat (limited to 'packages/demobank-ui/src/pages/RegistrationPage.tsx')
-rw-r--r-- | packages/demobank-ui/src/pages/RegistrationPage.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/demobank-ui/src/pages/RegistrationPage.tsx b/packages/demobank-ui/src/pages/RegistrationPage.tsx index 005a0bc2c..e948a5dad 100644 --- a/packages/demobank-ui/src/pages/RegistrationPage.tsx +++ b/packages/demobank-ui/src/pages/RegistrationPage.tsx @@ -177,13 +177,13 @@ function RegistrationForm({ onComplete, onCancel }: { onComplete: () => void, on backend.logIn({ username, token: resp.body.access_token }); } else { switch (resp.case) { - case "wrong-credentials": return notify({ + case HttpStatusCode.Unauthorized: return notify({ type: "error", title: i18n.str`Wrong credentials for "${username}"`, description: resp.detail.hint as TranslatedString, debug: resp.detail, }) - case "not-found": return notify({ + case HttpStatusCode.NotFound: return notify({ type: "error", title: i18n.str`Account not found`, description: resp.detail.hint as TranslatedString, |