mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-22 06:56:35 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user