Skip to content

Commit

Permalink
Fixed requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jjstnlee committed Mar 19, 2024
1 parent 88634af commit 3b04683
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/app/auth/forgotPassword/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function ForgotPasswordScreen() {
else
router.push({
pathname: '/auth/verify',
params: { finalRedirect: 'resetPassword', emailAfterRedirect: email },
params: { finalRedirect: 'resetPassword', userEmail: emailToReset },
});
};

Expand Down
6 changes: 3 additions & 3 deletions src/app/auth/verify/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ function VerificationScreen() {
const [userInput, setUserInput] = useState('');
const params = useLocalSearchParams<{
finalRedirect: string;
emailAfterRedirect: string;
userEmail: string;
}>();
const { finalRedirect, emailAfterRedirect } = params;
const email = user?.email ?? emailAfterRedirect ?? '';
const { finalRedirect, userEmail } = params;
const email = user?.email ?? userEmail ?? '';

const inputRef = useRef<OTPTextInput>(null);

Expand Down

0 comments on commit 3b04683

Please sign in to comment.