Skip to content

Commit

Permalink
remove dupe code
Browse files Browse the repository at this point in the history
  • Loading branch information
Nodebrute committed Apr 26, 2024
1 parent 7141703 commit 814853e
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/libs/ReportUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2650,13 +2650,6 @@ function getTransactionReportName(reportAction: OnyxEntry<ReportAction | Optimis
if (ReportActionsUtils.isSentMoneyReportAction(reportAction)) {
return Localize.translateLocal('iou.threadPaySomeoneReportName', {formattedAmount, comment});
}

if (ReportActionsUtils.isTrackExpenseAction(reportAction)) {
return Localize.translateLocal('iou.threadTrackReportName', {
formattedAmount: CurrencyUtils.convertToDisplayString(transactionDetails?.amount ?? 0, transactionDetails?.currency) ?? '',
comment: (!TransactionUtils.isMerchantMissing(transaction) ? transactionDetails?.merchant : transactionDetails?.comment) ?? '',
});
}
return Localize.translateLocal('iou.threadExpenseReportName', {formattedAmount, comment});
}

Expand Down

0 comments on commit 814853e

Please sign in to comment.