Skip to content

Commit

Permalink
fix(signup): toast opening in each render
Browse files Browse the repository at this point in the history
  • Loading branch information
KimiaMontazeri committed Nov 27, 2023
1 parent d653d6c commit 7f28b22
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions frontend/src/pages/Signup/Signup.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,10 @@ const SignUpForm = ({ onLoginClick }) => {
toastDataTemp.alertType = 'error';
break;
}
setAccessTokenFromLocalStorage();
setToastData(toastDataTemp);
setOpenToast(true);
}

setAccessTokenFromLocalStorage();
setToastData(toastDataTemp);
setOpenToast(true);
}, [createUserData]);

return (
Expand Down

0 comments on commit 7f28b22

Please sign in to comment.