Skip to content

Commit

Permalink
Merge pull request #46751 from Expensify/revert-45752-fix/43579-no-image
Browse files Browse the repository at this point in the history
[CP Staging] Revert "fix: add receipt name when track expense"
  • Loading branch information
roryabraham authored Aug 2, 2024
2 parents 33a2667 + 47de90a commit f77bb40
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/pages/iou/request/step/IOURequestStepConfirmation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -275,10 +275,6 @@ 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 @@ -289,7 +285,7 @@ function IOURequestStepConfirmation({
currentUserPersonalDetails.accountID,
selectedParticipants[0],
trimmedComment,
receiptObjWithFilename,
receiptObj,
transaction.category,
transaction.tag,
transactionTaxCode,
Expand Down

0 comments on commit f77bb40

Please sign in to comment.