Skip to content

Commit

Permalink
update detailsStep
Browse files Browse the repository at this point in the history
  • Loading branch information
waterim committed Oct 15, 2024
1 parent de0876a commit 494570a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pages/workspace/companyCards/addNew/DetailsStep.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ function DetailsStep() {
const {inputCallbackRef} = useAutoFocusInput();

const [addNewCard] = useOnyx(ONYXKEYS.ADD_NEW_COMPANY_CARD);
const feedProvider = addNewCard?.data.cardType;
const feedProvider = addNewCard?.data?.cardType;
const isStripeFeedProvider = feedProvider === CONST.COMPANY_CARDS.CARD_TYPE.STRIPE;
const submit = () => {};

const handleBackButtonPress = () => {
Expand Down Expand Up @@ -140,7 +141,7 @@ function DetailsStep() {
contentContainerStyle={styles.flexGrow1}
>
<Text style={[styles.textHeadlineLineHeightXXL, styles.ph5, styles.mv3]}>
{feedProvider && feedProvider !== CONST.COMPANY_CARDS.CARD_TYPE.STRIPE ? translate(`workspace.companyCards.addNewCard.feedDetails.${feedProvider}.title`) : ''}
{feedProvider && !isStripeFeedProvider ? translate(`workspace.companyCards.addNewCard.feedDetails.${feedProvider}.title`) : ''}
</Text>
<FormProvider
formID={ONYXKEYS.FORMS.ADD_NEW_CARD_FEED_FORM}
Expand Down

0 comments on commit 494570a

Please sign in to comment.