diff --git a/app/app.config.ts b/app/app.config.ts index 21ff5fc..8f35515 100644 --- a/app/app.config.ts +++ b/app/app.config.ts @@ -8,7 +8,7 @@ export default ({ config }: ConfigContext): ExpoConfig => ({ ...config, slug: "Lakbayan", name: "Lakbayan", - version: "1.0.1", + version: "1.0.2", orientation: "portrait", scheme: "myapp", userInterfaceStyle: "automatic", diff --git a/app/src/app/(contribute)/2-review-trip.tsx b/app/src/app/(contribute)/2-review-trip.tsx index 3236b82..27cb869 100644 --- a/app/src/app/(contribute)/2-review-trip.tsx +++ b/app/src/app/(contribute)/2-review-trip.tsx @@ -142,7 +142,7 @@ export default function TripReview() { diff --git a/app/src/components/contribute/RouteInformation.tsx b/app/src/components/contribute/RouteInformation.tsx index 1946403..7980482 100644 --- a/app/src/components/contribute/RouteInformation.tsx +++ b/app/src/components/contribute/RouteInformation.tsx @@ -26,11 +26,17 @@ export default function RouteInformation({ const { route, updateRoute } = useTripCreator(); React.useEffect(() => { - if (route.segmentMode === "Walk" && !isEditing) { - const defaultWalkName = `Walk from ${route.startLocation} to ${route.endLocation}`; - if (!route.segmentName || route.segmentName.startsWith("Walk from")) { - updateRoute({ segmentName: defaultWalkName }); - } + console.log( + "[RouteInformation] route.segmentMode route.segmentName", + route.segmentMode, + route.segmentName, + ); + if (route.segmentMode === "Walk") { + updateRoute({ segmentName: `Walk from ${route.startLocation} to ${route.endLocation}` }); + } else if (route.segmentName.toLowerCase().includes("walk")) { + updateRoute({ segmentName: "" }); + } else { + updateRoute({ segmentName: route.segmentName }); } }, [route.segmentMode, route.startLocation, route.endLocation]);