Skip to content

Commit

Permalink
Fix draft saving on account type step
Browse files Browse the repository at this point in the history
  • Loading branch information
shubham1206agra committed Jan 4, 2025
1 parent 1dfe4ca commit 300a666
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ function AccountType({isEditing, onNext, formValues, fieldsMap}: CustomSubStepPr
const onSelectionChange = useCallback(
(country: Option) => {
if (!isEditing) {
FormActions.setDraftValues(ONYXKEYS.FORMS.INTERNATIONAL_BANK_ACCOUNT_FORM, {[CONST.CORPAY_FIELDS.ACCOUNT_TYPE_KEY]: currentAccountType});
FormActions.setDraftValues(ONYXKEYS.FORMS.INTERNATIONAL_BANK_ACCOUNT_FORM, {[CONST.CORPAY_FIELDS.ACCOUNT_TYPE_KEY]: country.value});
}
setCurrentAccountType(country.value);
},
[currentAccountType, isEditing],
[isEditing],
);

const options = useMemo(
Expand Down

0 comments on commit 300a666

Please sign in to comment.