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