Skip to content

Commit

Permalink
fix: use && instead of ternary
Browse files Browse the repository at this point in the history
  • Loading branch information
allroundexperts committed Oct 19, 2023
1 parent 17cae03 commit 87055a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/ReportActionItem/MoneyRequestView.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ function MoneyRequestView({report, betas, parentReport, policyCategories, should
/>
</OfflineWithFeedback>
)}
{isExpensifyCardTransaction ? (
{isExpensifyCardTransaction && (
<OfflineWithFeedback pendingAction={getPendingFieldAction('pendingFields.cardID')}>
<MenuItemWithTopDescription
description={translate('iou.card')}
Expand All @@ -271,7 +271,7 @@ function MoneyRequestView({report, betas, parentReport, policyCategories, should
interactive={canEdit}
/>
</OfflineWithFeedback>
) : null}
)}
{shouldShowBillable && (
<View style={[styles.flexRow, styles.mb4, styles.justifyContentBetween, styles.alignItemsCenter, styles.ml5, styles.mr8]}>
<Text color={!transactionBillable ? themeColors.textSupporting : undefined}>{translate('common.billable')}</Text>
Expand Down

0 comments on commit 87055a8

Please sign in to comment.