Skip to content

Commit

Permalink
Merge pull request #28292 from Expensify/neil-distance-offline-fix
Browse files Browse the repository at this point in the history
Fix distance request next button while offline
  • Loading branch information
MonilBhavsar authored Sep 28, 2023
2 parents 9d176e8 + 4208ca4 commit 7ada99f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/DistanceRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ function DistanceRequest({transactionID, report, transaction, mapboxAccessToken,
success
style={[styles.w100, styles.mb4, styles.ph4, styles.flexShrink0]}
onPress={() => onSubmit(waypoints)}
isDisabled={!isOffline && (_.size(validatedWaypoints) < 2 || hasRouteError || isLoadingRoute || isLoading)}
isDisabled={_.size(validatedWaypoints) < 2 || (!isOffline && (hasRouteError || isLoadingRoute || isLoading))}
text={translate(isEditingRequest ? 'common.save' : 'common.next')}
isLoading={!isOffline && (isLoadingRoute || shouldFetchRoute || isLoading)}
/>
Expand Down

0 comments on commit 7ada99f

Please sign in to comment.