Skip to content

Commit

Permalink
Merge pull request #68 from Yura-Platonov/ChangePass
Browse files Browse the repository at this point in the history
add
  • Loading branch information
LaPaNu4 authored Jan 4, 2024
2 parents 1c0a2e1 + 4d3ab8a commit c8214f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/ChangePassPage/ChangePassPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export default function ChangePassPage() {
const { code } = useParams();
const user = useSelector(selectUser);
useEffect(() => {

if (code) {
try {
dispatch(acceptCode({code}));
Expand All @@ -20,6 +21,7 @@ export default function ChangePassPage() {
setSuccess(false);
}
}
}, [code, dispatch, user]);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [code, dispatch]);
return <div>{success ? <ChangePass /> : <ForgotPass />}</div>;
}

0 comments on commit c8214f1

Please sign in to comment.