From 9b73d8d3a32ad6697e194343df3777b2f01141c9 Mon Sep 17 00:00:00 2001 From: Philzen Date: Tue, 9 Aug 2022 02:52:52 +0200 Subject: [PATCH] Update test fixture --- .../web/src/pages/ResetPasswordPage/ResetPasswordPage.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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(() => {