From 32b592ce02d467b2d44a7d24620720a9e25db153 Mon Sep 17 00:00:00 2001 From: Alex Santos Date: Thu, 23 Jun 2022 22:21:25 -0300 Subject: [PATCH] support login --- src/pages/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/index.tsx b/src/pages/index.tsx index a95fd64..5e2d390 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -71,7 +71,7 @@ export default function Home() { }else{ try { await signIn({email, password}).then((res: any) => { - if (res.response.status === 422) { + if (res.response.status === 422 || res.response.status === 401) { setOpenSnackError(true) } })