diff options
author | Sebastian <sebasjm@gmail.com> | 2023-03-15 09:54:31 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-03-15 09:54:31 -0300 |
commit | ae4d4647e988a6eb8e9fd87af3385371ba56ab43 (patch) | |
tree | f9a3dccebc4d809790819f6ab396297113c7d312 /packages/merchant-backoffice-ui/src/components | |
parent | 0bf92a44df14f1946df2b1cd58a6b0b92b5befa2 (diff) | |
download | wallet-core-ae4d4647e988a6eb8e9fd87af3385371ba56ab43.tar.xz |
better error handling
Diffstat (limited to 'packages/merchant-backoffice-ui/src/components')
-rw-r--r-- | packages/merchant-backoffice-ui/src/components/exception/login.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/merchant-backoffice-ui/src/components/exception/login.tsx b/packages/merchant-backoffice-ui/src/components/exception/login.tsx index 435ff1d6a..52b5b2a24 100644 --- a/packages/merchant-backoffice-ui/src/components/exception/login.tsx +++ b/packages/merchant-backoffice-ui/src/components/exception/login.tsx @@ -141,8 +141,8 @@ export function LoginModal({ onConfirm, withMessage }: Props): VNode { class="button is-info" onClick={async () => { const secretToken = normalizeToken(token); - const isOk = await testLogin(url, secretToken); - if (isOk) { + const { valid, cause } = await testLogin(url, secretToken); + if (valid) { onConfirm(url, secretToken); } else { onConfirm(url); |