Skip to content

Commit

Permalink
Update frontend/src/scenes/login/CheckYourEmailPage.jsx
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
erenfn and coderabbitai[bot] authored Jan 13, 2025
1 parent caea6dc commit 717a4a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/scenes/login/CheckYourEmailPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 717a4a3

Please sign in to comment.