mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
fix(experience): should not show error message on sign-in page (#5052)
should not show error message on sign-in page
This commit is contained in:
parent
aa5bfdd0b3
commit
ff730acf1a
1 changed files with 9 additions and 1 deletions
|
@ -46,7 +46,15 @@ const useCheckSingleSignOn = () => {
|
|||
const [error, result] = await request(email);
|
||||
|
||||
if (error) {
|
||||
await handleError(error);
|
||||
// Show error message only if the user is trying to continue the single sign-on flow, otherwise, silently fail
|
||||
if (continueSignIn) {
|
||||
await handleError(error, {
|
||||
'guard.invalid_input': () => {
|
||||
setErrorMessage(t('error.invalid_email'));
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue