Skip to content

Commit

Permalink
pass the fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
rezkiy37 committed Nov 21, 2023
1 parent 75ffa9b commit e5003df
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pages/ReferralDetailsPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import Navigation from '@libs/Navigation/Navigation';
import styles from '@styles/styles';
import CONST from '@src/CONST';
import ONYXKEYS from '@src/ONYXKEYS';
import ROUTES from '@src/ROUTES';

const propTypes = {
/** Navigation route context info provided by react navigation */
Expand Down Expand Up @@ -64,7 +65,7 @@ function ReferralDetailsPage({route, account}) {
>
<HeaderWithBackButton
title={translate('common.referral')}
onBackButtonPress={Navigation.goBack}
onBackButtonPress={() => Navigation.goBack(ROUTES.HOME)}
/>
<View style={[styles.justifyContentCenter, styles.alignItemsCenter, styles.ph5, styles.flex1]}>
<Icon
Expand Down Expand Up @@ -95,7 +96,7 @@ function ReferralDetailsPage({route, account}) {
success
style={[styles.w100]}
text={translate('common.buttonConfirm')}
onPress={Navigation.goBack}
onPress={() => Navigation.goBack(ROUTES.HOME)}
pressOnEnter
enterKeyEventListenerPriority={1}
/>
Expand Down

0 comments on commit e5003df

Please sign in to comment.