Skip to content

Commit c393384

Browse files
authored
Merge pull request #90237 from Expensify/claude-fixGpsStopResumeButtons
Show Resume/Save buttons when GPS tracking is stopped immediately
2 parents 3c5eab5 + 4059c08 commit c393384

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/libs/GPSDraftDetailsUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ async function stopGpsTrip(isOffline: boolean, gpsPoints: GPSPoint[][], skipLast
116116
return;
117117
}
118118

119-
if (isLastSegmentEmptyOrHasOnlyOnePoint(lastSegment)) {
119+
if (isLastSegmentEmptyOrHasOnlyOnePoint(lastSegment) && gpsPoints.length > 1) {
120120
removeLastSegment(gpsPoints);
121121
return;
122122
}

0 commit comments

Comments
 (0)