Skip to content

Commit

Permalink
Merge pull request #45752 from dominictb/fix/43579-no-image
Browse files Browse the repository at this point in the history
fix: add receipt name when track expense
  • Loading branch information
bondydaa authored Aug 1, 2024
2 parents c5c0977 + 12fb7e6 commit 8abdcca
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pages/iou/request/step/IOURequestStepConfirmation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -285,7 +289,7 @@ function IOURequestStepConfirmation({
currentUserPersonalDetails.accountID,
selectedParticipants[0],
trimmedComment,
receiptObj,
receiptObjWithFilename,
transaction.category,
transaction.tag,
transactionTaxCode,
Expand Down

0 comments on commit 8abdcca

Please sign in to comment.