diff --git a/src/pages/iou/request/step/IOURequestStepConfirmation.tsx b/src/pages/iou/request/step/IOURequestStepConfirmation.tsx index 88c6a675e3d1..2574b6a848ee 100644 --- a/src/pages/iou/request/step/IOURequestStepConfirmation.tsx +++ b/src/pages/iou/request/step/IOURequestStepConfirmation.tsx @@ -275,6 +275,10 @@ function IOURequestStepConfirmation({ if (!report || !transaction) { return; } + const receiptObjWithFilename = receiptObj && {...receiptObj}; + if (receiptObjWithFilename && !receiptObjWithFilename?.name) { + receiptObjWithFilename.name = transaction.filename; + } IOU.trackExpense( report, transaction.amount, @@ -285,7 +289,7 @@ function IOURequestStepConfirmation({ currentUserPersonalDetails.accountID, selectedParticipants[0], trimmedComment, - receiptObj, + receiptObjWithFilename, transaction.category, transaction.tag, transactionTaxCode,