#94 fix user switcher

parent dbf94cc2
...@@ -25,6 +25,7 @@ const SwitchUserModal= ({open, handleClose})=> { ...@@ -25,6 +25,7 @@ const SwitchUserModal= ({open, handleClose})=> {
const navigate= useNavigate(); const navigate= useNavigate();
const submitFormHandler=(e, currentUser)=>{ const submitFormHandler=(e, currentUser)=>{
dispatch(logoutUser(navigate)) dispatch(logoutUser(navigate))
e.preventDefault();
e.preventDefault(); e.preventDefault();
dispatch(loginUser({ dispatch(loginUser({
"email": currentUser.email, "email": currentUser.email,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment