diff --git a/src/component/auth/Login2.jsx b/src/component/auth/Login2.jsx index 698421f..623d72d 100644 --- a/src/component/auth/Login2.jsx +++ b/src/component/auth/Login2.jsx @@ -27,8 +27,11 @@ export default function Login() { }, onError: (error) => { console.log('error', error) - navigate('/dash') // remove later + }, + onSuccess: () => { + navigate('/dash') // later add redux to dispatch state + } }) return (