From e942f4168ded01375e314de79bd7382a0121025f Mon Sep 17 00:00:00 2001 From: edwin6666 Date: Tue, 5 Dec 2023 12:03:52 -0400 Subject: [PATCH] Fix:(auth) login If the user exists --- src/hooks/useAuthentication.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hooks/useAuthentication.js b/src/hooks/useAuthentication.js index ae1ecdd..e03c687 100644 --- a/src/hooks/useAuthentication.js +++ b/src/hooks/useAuthentication.js @@ -36,6 +36,8 @@ const useAuthentication = () => { toast.error("invalid credential"); } else if (error.response.status === 500) { toast.error("internal server error"); + }else if (error.response.status === 400) { + toast.error("user not found"); } } }