Skip to content

Commit 0388be2

Browse files
committed
fix: do not fetch corpay fields when choosing the same country
1 parent acd0021 commit 0388be2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/pages/settings/Wallet/InternationalDepositAccount/substeps/CountrySelection.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ function CountrySelection({isEditing, onNext, formValues, resetScreenIndex}: Cus
3737
}
3838
return;
3939
}
40-
if (isEditing && formValues.bankCountry === currentCountry) {
40+
if (formValues.bankCountry === currentCountry) {
4141
onNext();
4242
return;
4343
}
4444
fetchCorpayFields(currentCountry);
4545
resetScreenIndex?.(CONST.CORPAY_FIELDS.INDEXES.MAPPING.BANK_ACCOUNT_DETAILS);
46-
}, [currentCountry, formValues.bankCountry, isEditing, onNext, resetScreenIndex, isUserValidated]);
46+
}, [currentCountry, formValues.bankCountry, onNext, resetScreenIndex, isUserValidated]);
4747

4848
const onSelectionChange = useCallback((country: Option) => {
4949
setCurrentCountry(country.value);

0 commit comments

Comments
 (0)