Skip to content

Commit

Permalink
Fix distance request next button while offline
Browse files Browse the repository at this point in the history
  • Loading branch information
neil-marcellini committed Sep 27, 2023
1 parent 295a8dc commit 52d5bb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/DistanceRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,9 +297,9 @@ function DistanceRequest({iou, iouType, report, transaction, mapboxAccessToken,
success
style={[styles.w100, styles.mb4, styles.ph4, styles.flexShrink0]}
onPress={navigateToNextPage}
isDisabled={_.size(validatedWaypoints) < 2 || hasRouteError || isLoadingRoute}
isDisabled={_.size(validatedWaypoints) < 2 || (!isOffline && (hasRouteError || isLoadingRoute))}
text={translate('common.next')}
isLoading={isLoadingRoute || shouldFetchRoute}
isLoading={!isOffline && (isLoadingRoute || shouldFetchRoute)}
/>
</ScrollView>
);
Expand Down

0 comments on commit 52d5bb1

Please sign in to comment.