Skip to content

Commit 5ed063d

Browse files
committed
add a return
1 parent adfa908 commit 5ed063d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/pages/settings/VerifyAccountPageBase.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,10 @@ function VerifyAccountPageBase({navigateBackTo, navigateForwardTo, handleClose}:
4343
const handleCloseWithFallback = useCallback(() => {
4444
if (handleClose) {
4545
handleClose();
46+
return;
4647
}
4748
Navigation.goBack(navigateBackTo);
48-
}, [navigateBackTo]);
49+
}, [handleClose, navigateBackTo]);
4950

5051
// Handle navigation once the user is validated
5152
useEffect(() => {

0 commit comments

Comments
 (0)