Skip to content

Commit bc77c84

Browse files
authored
Merge pull request Expensify#90446 from Expensify/alberto-autoSel
Default to Commercial feed for non-plaid countries
2 parents a23fdff + 71a93f4 commit bc77c84

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/pages/workspace/companyCards/addNew/SelectCountryStep.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function SelectCountryStep({policyID}: CountryStepProps) {
5858
step: CONST.COMPANY_CARDS.STEP.SELECT_FEED_TYPE,
5959
data: {
6060
selectedCountry: currentCountry,
61-
selectedFeedType: doesCountrySupportPlaid ? CONST.COMPANY_CARDS.FEED_TYPE.DIRECT : undefined,
61+
selectedFeedType: doesCountrySupportPlaid ? CONST.COMPANY_CARDS.FEED_TYPE.DIRECT : CONST.COMPANY_CARDS.FEED_TYPE.CUSTOM,
6262
},
6363
isEditing: false,
6464
});

src/pages/workspace/companyCards/addNew/SelectFeedType.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function SelectFeedType() {
2727
const isCSVCardImportBetaEnabled = isBetaEnabled(CONST.BETAS.CSV_CARD_IMPORT);
2828
const doesCountrySupportPlaid = isPlaidSupportedCountry(addNewCard?.data?.selectedCountry);
2929
const isUSCountry = addNewCard?.data?.selectedCountry === CONST.COUNTRY.US;
30-
const defaultTypeSelected = addNewCard?.data.selectedFeedType ?? (doesCountrySupportPlaid ? CONST.COMPANY_CARDS.FEED_TYPE.DIRECT : undefined);
30+
const defaultTypeSelected = addNewCard?.data.selectedFeedType ?? (doesCountrySupportPlaid ? CONST.COMPANY_CARDS.FEED_TYPE.DIRECT : CONST.COMPANY_CARDS.FEED_TYPE.CUSTOM);
3131
const typeSelected = localTypeSelected ?? defaultTypeSelected;
3232

3333
const submit = useCallback(() => {

0 commit comments

Comments
 (0)