diff --git a/__fixtures__/test-project/web/src/pages/ResetPasswordPage/ResetPasswordPage.tsx b/__fixtures__/test-project/web/src/pages/ResetPasswordPage/ResetPasswordPage.tsx index dc62183da060..b1ffcc7827dd 100644 --- a/__fixtures__/test-project/web/src/pages/ResetPasswordPage/ResetPasswordPage.tsx +++ b/__fixtures__/test-project/web/src/pages/ResetPasswordPage/ResetPasswordPage.tsx @@ -12,9 +12,10 @@ import { navigate, routes } from '@redwoodjs/router' import { MetaTags } from '@redwoodjs/web' import { toast, Toaster } from '@redwoodjs/web/toast' -const ResetPasswordPage = ({ resetToken }) => { +const ResetPasswordPage = ({ resetToken }: { resetToken: string }) => { const { isAuthenticated, reauthenticate, validateResetToken, resetPassword } = useAuth() + const [enabled, setEnabled] = useState(true) useEffect(() => { @@ -34,7 +35,7 @@ const ResetPasswordPage = ({ resetToken }) => { } } validateToken() - }, []) + }, [resetToken, validateResetToken]) const passwordRef = useRef(null) useEffect(() => {