From f5692739702c8c1331a492f97df4acf86aea422a Mon Sep 17 00:00:00 2001 From: Amirhossein Mahmoodi Date: Mon, 7 Aug 2023 14:23:09 +0330 Subject: [PATCH] fixed any bugs --- .gitignore | 3 ++- src/components/login-expert/index.jsx | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 4e572ed..78b977c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ node_modules .next .env.local -.idea \ No newline at end of file +.idea +package-lock.json \ No newline at end of file diff --git a/src/components/login-expert/index.jsx b/src/components/login-expert/index.jsx index 7b35cf4..c714564 100644 --- a/src/components/login-expert/index.jsx +++ b/src/components/login-expert/index.jsx @@ -27,6 +27,7 @@ const LoginComponent = () => { //formik properties const handleSubmit = async (values, props) => { + Notifications(directionApp, t); await axios .post(GET_USER_TOKEN, { username: values.username, @@ -36,7 +37,7 @@ const LoginComponent = () => { setToken(response.data.token); }) .catch(function (error) { - Notifications(directionApp, error.response, t); + Notifications(directionApp, t, error.response); props.setSubmitting(false); }); };