error-catch
This commit is contained in:
parent
4a55271a79
commit
135e0d215f
|
@ -99,8 +99,7 @@ export const LoginForm = () => {
|
|||
console.debug('[signIn] errors:', errors)
|
||||
if (
|
||||
errors.some(
|
||||
(error) =>
|
||||
error.message.includes('bad user credentials') || error.message.includes('user not found'),
|
||||
(error) => error.message.includes('bad user credentials') || error.message.includes('user not'),
|
||||
)
|
||||
) {
|
||||
setValidationErrors((prev) => ({
|
||||
|
|
Loading…
Reference in New Issue
Block a user