Skip to content

Commit 498db0a

Browse files
authored
Merge pull request Expensify#82502 from MobileMage/fix/80731-not-here-page-overlap
Force full screen on Not Here page for invalid validate codes
2 parents 6f567df + 6288b8c commit 498db0a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/components/ValidateCode/ValidateCodeModal.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,13 @@ function ValidateCodeModal({code, accountID}: ValidateCodeModalProps) {
3333
const signInHere = useCallback(() => signInWithValidateCode(accountID, code, preferredLocale), [accountID, code, preferredLocale]);
3434
const {translate} = useLocalize();
3535
const {shouldUseNarrowLayout} = useResponsiveLayout();
36+
const isValidCode = isValidValidateCode(code);
3637

3738
return (
3839
<FullPageNotFoundView
3940
testID="validate-code-not-found"
40-
shouldShow={!isValidValidateCode(code)}
41+
shouldShow={!isValidCode}
42+
shouldForceFullScreen={!isValidCode}
4143
shouldShowBackButton={shouldUseNarrowLayout}
4244
onLinkPress={() => {
4345
Navigation.goBack();

0 commit comments

Comments
 (0)