Skip to content

Commit

Permalink
fix: expense is shown when sending send invoice
Browse files Browse the repository at this point in the history
  • Loading branch information
nkdengineer committed Oct 22, 2024
1 parent d329b9c commit 7218dd8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/ReportActionItem/ReportPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -398,8 +398,11 @@ function ReportPreview({
if (formattedDescription ?? moneyRequestComment) {
return {supportText: truncate(StringUtils.lineBreaksToSpaces(formattedDescription ?? moneyRequestComment), {length: CONST.REQUEST_PREVIEW.MAX_LENGTH})};
}
if (formattedMerchant === CONST.TRANSACTION.DEFAULT_MERCHANT) {
return {supportText: formattedMerchant};

if (numberOfRequests === 1) {
return {
supportText: '',
};
}
return {
supportText: translate('iou.expenseCount', {
Expand Down

0 comments on commit 7218dd8

Please sign in to comment.