Skip to content

Commit

Permalink
Merge pull request Expensify#50732 from fabioh8010/bugfix/50303
Browse files Browse the repository at this point in the history
Fix shouldDisplayTrackExpenseButton logic
  • Loading branch information
grgia authored Oct 23, 2024
2 parents 5ab50e1 + 1012040 commit 45c44ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/iou/request/step/IOURequestStepParticipants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function IOURequestStepParticipants({
}, [iouType, translate, isSplitRequest, action]);

const selfDMReportID = useMemo(() => ReportUtils.findSelfDMReportID(), []);
const shouldDisplayTrackExpenseButton = !!selfDMReportID && action === CONST.IOU.ACTION.CREATE;
const shouldDisplayTrackExpenseButton = !!selfDMReportID && iouType === CONST.IOU.TYPE.CREATE;

const receiptFilename = transaction?.filename;
const receiptPath = transaction?.receipt?.source;
Expand Down

0 comments on commit 45c44ee

Please sign in to comment.