Skip to content

Commit

Permalink
fix :)
Browse files Browse the repository at this point in the history
  • Loading branch information
grgia committed Oct 2, 2024
1 parent 48e4923 commit 45ce5f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/iou/request/step/IOURequestStepParticipants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function IOURequestStepParticipants({
const {translate} = useLocalize();
const styles = useThemeStyles();
const isFocused = useIsFocused();
const {canUseP2PDistanceRequests, canUseCombinedTrackSubmit} = usePermissions(iouType);
const {canUseP2PDistanceRequests} = usePermissions(iouType);

// We need to set selectedReportID if user has navigated back from confirmation page and navigates to confirmation page with already selected participant
const selectedReportID = useRef<string>(participants?.length === 1 ? participants.at(0)?.reportID ?? reportID : reportID);
Expand Down Expand Up @@ -76,7 +76,7 @@ function IOURequestStepParticipants({
}, [iouType, translate, isSplitRequest, action]);

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

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

0 comments on commit 45ce5f5

Please sign in to comment.