From 717a4a3613a27dd1b3f602cc6839a340a435b3b9 Mon Sep 17 00:00:00 2001 From: erenfn <81182796+erenfn@users.noreply.github.com> Date: Mon, 13 Jan 2025 15:41:11 +0300 Subject: [PATCH] Update frontend/src/scenes/login/CheckYourEmailPage.jsx Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- frontend/src/scenes/login/CheckYourEmailPage.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/scenes/login/CheckYourEmailPage.jsx b/frontend/src/scenes/login/CheckYourEmailPage.jsx index 983bb623..a319b2bd 100644 --- a/frontend/src/scenes/login/CheckYourEmailPage.jsx +++ b/frontend/src/scenes/login/CheckYourEmailPage.jsx @@ -8,8 +8,8 @@ import { forgotPassword } from "../../services/loginServices"; const CheckYourEmailPage = () => { const navigate = useNavigate(); const location = useLocation(); - const values = location.state.values - const { email: emailFromState } = values || {}; + const values = location.state?.values || {}; + const { email: emailFromState } = values; const handleResendClick = () => { if (emailFromState) {