Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,6 @@ function InternationalDepositAccountContent({
return true;
}

// Clicking back on the success screen should dismiss the modal
if (pageIndex === CONST.CORPAY_FIELDS.INDEXES.MAPPING.SUCCESS) {
clearDraftValues(ONYXKEYS.FORMS.INTERNATIONAL_BANK_ACCOUNT_FORM);
goBack();
return true;
}
prevPage();
return true;
};
Expand All @@ -177,6 +171,7 @@ function InternationalDepositAccountContent({
<>
<HeaderWithBackButton
title={translate('bankAccount.addBankAccount')}
shouldShowBackButton={pageIndex !== CONST.CORPAY_FIELDS.INDEXES.MAPPING.SUCCESS}
Comment thread
arosiclair marked this conversation as resolved.
Resolved
onBackButtonPress={handleBackButtonPress}
/>
<CurrentPage
Expand Down
Loading