Skip to content

Commit

Permalink
fix ts bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dukenv0307 committed Jan 10, 2024
1 parent 61bc05c commit e9ca21b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/ReportUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2039,7 +2039,7 @@ function getTransactionReportName(reportAction: OnyxEntry<ReportAction>): string

return Localize.translateLocal(ReportActionsUtils.isSentMoneyReportAction(reportAction) ? 'iou.threadSentMoneyReportName' : 'iou.threadRequestReportName', {
formattedAmount: CurrencyUtils.convertToDisplayString(transactionDetails?.amount ?? 0, transactionDetails?.currency, TransactionUtils.isDistanceRequest(transaction)) ?? '',
comment: !TransactionUtils.isMerchantMissing(transaction) ? transactionDetails?.merchant : transactionDetails?.comment ?? '',
comment: (!TransactionUtils.isMerchantMissing(transaction) ? transactionDetails?.merchant : transactionDetails?.comment) ?? '',
});
}

Expand Down

0 comments on commit e9ca21b

Please sign in to comment.