Skip to content

Commit 71a93f4

Browse files
committed
Default to Commercial feed for non-plaid countries
1 parent af304c0 commit 71a93f4

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
@@ -24,7 +24,7 @@ function SelectFeedType() {
2424
const [hasError, setHasError] = useState(false);
2525
const doesCountrySupportPlaid = isPlaidSupportedCountry(addNewCard?.data?.selectedCountry);
2626
const isUSCountry = addNewCard?.data?.selectedCountry === CONST.COUNTRY.US;
27-
const defaultTypeSelected = addNewCard?.data.selectedFeedType ?? (doesCountrySupportPlaid ? CONST.COMPANY_CARDS.FEED_TYPE.DIRECT : undefined);
27+
const defaultTypeSelected = addNewCard?.data.selectedFeedType ?? (doesCountrySupportPlaid ? CONST.COMPANY_CARDS.FEED_TYPE.DIRECT : CONST.COMPANY_CARDS.FEED_TYPE.CUSTOM);
2828
const typeSelected = localTypeSelected ?? defaultTypeSelected;
2929

3030
const submit = useCallback(() => {

0 commit comments

Comments
 (0)