Skip to content

Commit 519d468

Browse files
committed
Fix getEndAddressTitle
1 parent e781005 commit 519d468

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • src/pages/iou/request/step/IOURequestStepDistanceGPS/Waypoints

src/pages/iou/request/step/IOURequestStepDistanceGPS/Waypoints/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@ function Waypoints({unit, isInLandscapeMode}: WaypointsProps) {
4747
const Wrapper = isInLandscapeMode ? ScrollView : View;
4848

4949
const getEndAddressTitle = () => {
50-
if (isTripCaptured) {
51-
return gpsDraftDetails?.endAddress?.value;
52-
}
53-
5450
if (shouldShowLoadingEndAddress) {
5551
return '...';
5652
}
5753

54+
if (isTripCaptured) {
55+
return gpsDraftDetails?.endAddress?.value;
56+
}
57+
5858
return translate('gps.trackingDistance');
5959
};
6060

0 commit comments

Comments
 (0)