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); }); };