Skip to content

Commit 300a666

Browse files
Fix draft saving on account type step
1 parent 1dfe4ca commit 300a666

File tree

1 file changed

+2
-2
lines changed
  • src/pages/settings/Wallet/InternationalDepositAccount/substeps

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ function AccountType({isEditing, onNext, formValues, fieldsMap}: CustomSubStepPr
3434
const onSelectionChange = useCallback(
3535
(country: Option) => {
3636
if (!isEditing) {
37-
FormActions.setDraftValues(ONYXKEYS.FORMS.INTERNATIONAL_BANK_ACCOUNT_FORM, {[CONST.CORPAY_FIELDS.ACCOUNT_TYPE_KEY]: currentAccountType});
37+
FormActions.setDraftValues(ONYXKEYS.FORMS.INTERNATIONAL_BANK_ACCOUNT_FORM, {[CONST.CORPAY_FIELDS.ACCOUNT_TYPE_KEY]: country.value});
3838
}
3939
setCurrentAccountType(country.value);
4040
},
41-
[currentAccountType, isEditing],
41+
[isEditing],
4242
);
4343

4444
const options = useMemo(

0 commit comments

Comments
 (0)