Skip to content

Commit

Permalink
[#355] fix checkHash function
Browse files Browse the repository at this point in the history
  • Loading branch information
SkyAjax committed Sep 18, 2023
1 parent 0b80530 commit c2e847a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/pages/reset-password/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function ResetPasswordPage() {
useEffect(() => {
const checkHash = async () => {
const { data } = await axios.get(`${routes.resetPassPath()}/${hash}`);
setUserId(!!data.id);
setUserId(data.id);
};
checkHash();
}, [userId, hash]);
Expand Down

0 comments on commit c2e847a

Please sign in to comment.