Skip to content

Commit

Permalink
Add all dependencies to dependency array of effect hook which validat…
Browse files Browse the repository at this point in the history
…es the token
  • Loading branch information
Philzen committed Aug 8, 2022
1 parent 7531431 commit c4c4766
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const ResetPasswordPage = ({ resetToken }) => {
}
}
validateToken()
}, [])
}, [resetToken, validateResetToken])

const passwordRef = useRef<HTMLInputElement>(null)
useEffect(() => {
Expand Down

0 comments on commit c4c4766

Please sign in to comment.