Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/ReportActionItem/MoneyRequestView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ function MoneyRequestView({report, shouldShowAnimatedBackground, readonly = fals
numberOfLinesTitle={0}
/>
</OfflineWithFeedback>
{isDistanceRequest ? (
{isDistanceRequest && transaction?.comment?.waypoints ? (
distanceRequestFields
) : (
<OfflineWithFeedback pendingAction={getPendingFieldAction('merchant')}>
Expand Down
1 change: 1 addition & 0 deletions src/pages/iou/request/step/IOURequestStepDistance.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,7 @@ function IOURequestStepDistance({
headerTitle={translate('common.distance')}
onBackButtonPress={navigateBack}
testID={IOURequestStepDistance.displayName}
shouldShowNotFoundPage={isEditing && !transaction?.comment?.waypoints}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coming from #67142, we also should show not found page if users can't edit

shouldShowWrapper={!isCreatingNewRequest}
>
<>
Expand Down