Skip to content

Commit

Permalink
Use boolean operator
Browse files Browse the repository at this point in the history
  • Loading branch information
mountiny committed Nov 4, 2024
1 parent 76552d6 commit bf25f8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/workspace/companyCards/addNew/DetailsStep.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ function DetailsStep({policyID}: DetailsStepProps) {
contentContainerStyle={styles.flexGrow1}
>
<Text style={[styles.textHeadlineLineHeightXXL, styles.ph5, styles.mv3]}>
{feedProvider && !isStripeFeedProvider ? 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 All @@ -189,7 +189,7 @@ function DetailsStep({policyID}: DetailsStepProps) {
enabledWhenOffline
>
{renderInputs()}
{feedProvider && !isStripeFeedProvider && (
{!!feedProvider && !isStripeFeedProvider && (
<View style={[styles.flexRow, styles.alignItemsCenter]}>
<Icon
src={Expensicons.QuestionMark}
Expand Down

0 comments on commit bf25f8c

Please sign in to comment.