fix(share): the day line on the shared map asks for a picked day as a boolean

`selectedDay && ...` would render a 0 if a day id were ever 0; the
check is explicit now.
This commit is contained in:
Maurice
2026-09-28 21:55:38 +02:00
parent fe93df7711
commit 6f61b66c5c
+1 -1
View File
@@ -123,7 +123,7 @@ export function SharedMap({ places, line, orderByPlace, cartoApiKey, days, selec
<TileLayer url={basemap.url} attribution={attributionForTile(basemap.url)} referrerPolicy="strict-origin-when-cross-origin" />
)}
<FitBoundsToPlaces places={places} framedOnMount={framed !== null} />
{selectedDay && line.length > 1 && (
{selectedDay != null && line.length > 1 && (
<Polyline
positions={line.map(p => [p.lat, p.lng])}
// Dashed and straight on purpose: it shows the order of the day's stops,