Skip to content

Commit

Permalink
Merge pull request #50068 from Expensify/georgia-deployblocker-justtr…
Browse files Browse the repository at this point in the history
…ackit

don't show just track it option unless coming from CREATE flow

(cherry picked from commit 4e92c0e)

(CP triggered by jasperhuangg)
  • Loading branch information
grgia authored and OSBotify committed Oct 3, 2024
1 parent 8678c28 commit d839b15
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;
const shouldDisplayTrackExpenseButton = !!selfDMReportID && action === CONST.IOU.ACTION.CREATE;

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

0 comments on commit d839b15

Please sign in to comment.