Skip to content

Commit 8c5309b

Browse files
committed
unnecessary skip of file uploads removed
1 parent cc49908 commit 8c5309b

File tree

1 file changed

+1
-6
lines changed
  • src/pages/ReimbursementAccount/NonUSD/SignerInfo/subSteps

1 file changed

+1
-6
lines changed

src/pages/ReimbursementAccount/NonUSD/SignerInfo/subSteps/Address.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import type {SubStepProps} from '@hooks/useSubStep/types';
77
import CONST from '@src/CONST';
88
import type {Country} from '@src/CONST';
99
import ONYXKEYS from '@src/ONYXKEYS';
10-
import INPUT_IDS from '@src/types/form/ReimbursementAccountForm';
1110

1211
type NameProps = SubStepProps;
1312

@@ -16,7 +15,6 @@ const {STREET, CITY, STATE, ZIP_CODE, COUNTRY} = CONST.NON_USD_BANK_ACCOUNT.SIGN
1615
function Address({onNext, isEditing, onMove}: NameProps) {
1716
const {translate} = useLocalize();
1817
const [reimbursementAccountDraft] = useOnyx(ONYXKEYS.FORMS.REIMBURSEMENT_ACCOUNT_FORM_DRAFT);
19-
const countryStepCountryValue = reimbursementAccountDraft?.[INPUT_IDS.ADDITIONAL_DATA.COUNTRY] ?? '';
2018

2119
const countryInputKey = COUNTRY;
2220
const inputKeys = {
@@ -64,12 +62,9 @@ function Address({onNext, isEditing, onMove}: NameProps) {
6462
// owner is US based we need to gather last four digits of his SSN
6563
if (reimbursementAccountDraft?.[inputKeys.country] === CONST.COUNTRY.US) {
6664
onNext();
67-
// currency is set to GBP and owner is UK based, so we skip SSN and Documents step
68-
} else if (countryStepCountryValue === CONST.COUNTRY.GB && reimbursementAccountDraft?.[inputKeys.country] === CONST.COUNTRY.GB) {
69-
onMove(6, false);
7065
// owner is not US based so we skip SSN step
7166
} else {
72-
onMove(5, false);
67+
onMove(4, false);
7368
}
7469
};
7570

0 commit comments

Comments
 (0)