diff --git a/src/libs/actions/IOU.ts b/src/libs/actions/IOU.ts index 55c6b17ee6d2..c75c59e7f262 100644 --- a/src/libs/actions/IOU.ts +++ b/src/libs/actions/IOU.ts @@ -8312,7 +8312,7 @@ function resolveDuplicates(params: TransactionMergeParams) { }); }); - const transactionThreadReportID = getIOUActionForTransactions([params.transactionID], params.reportID)?.[0]?.childReportID; + const transactionThreadReportID = getIOUActionForTransactions([params.transactionID], params.reportID).at(0)?.childReportID; const optimisticReportAction = ReportUtils.buildOptimisticDismissedViolationReportAction({ reason: 'manual', violationName: CONST.VIOLATIONS.DUPLICATED_TRANSACTION,