diff --git a/src/components/PlaceCard.jsx b/src/components/PlaceCard.jsx index b2a0025..ebfff5f 100644 --- a/src/components/PlaceCard.jsx +++ b/src/components/PlaceCard.jsx @@ -396,7 +396,7 @@ export function PlaceCard({ place, variant = "preview", expanded = true, onToggl
{(place.raw?.name || place.name) || "Unknown place"}
- {place.type && !["poi", "unknown", ""].includes(place.type.toLowerCase()) && {place.type}} + {place.type && !place.type.includes("_") && !["poi", "unknown", "yes", "no", "other", ""].includes(place.type.toLowerCase()) && {place.type}} {driveTime != null && <>{"\u00b7"}{formatDriveTime(driveTime)} drive} {nearbyLabel && <>{"\u00b7"}Near {nearbyLabel}}
@@ -420,15 +420,15 @@ export function PlaceCard({ place, variant = "preview", expanded = true, onToggl
{variant === "preview" && ( <> - {stops.length < 2 && } + {stops.length < 2 && } {existingStopIndex >= 0 ? ( - Stop {String.fromCharCode(65 + existingStopIndex)} + Stop {String.fromCharCode(65 + existingStopIndex)} ) : ( - + )} )} - {variant === "stop" && onRemove && } + {variant === "stop" && onRemove && } {auth.authenticated ? ( ) : ( diff --git a/src/components/PlaceDetail.jsx b/src/components/PlaceDetail.jsx index 9fc8156..2aed16c 100644 --- a/src/components/PlaceDetail.jsx +++ b/src/components/PlaceDetail.jsx @@ -677,7 +677,7 @@ export default function PlaceDetail() { {(() => { const cat = placeDetails && placeDetails !== 'loading' ? placeDetails.category : null const parts = [] - if (cat && !["poi", "unknown", ""].includes(cat.toLowerCase())) parts.push(cat) + if (cat && !cat.includes("_") && !["poi", "unknown", "yes", "no", "other", ""].includes(cat.toLowerCase())) parts.push(cat) if (nearbyLabel) parts.push(`near ${nearbyLabel}`) if (driveTime != null) parts.push(formatDriveTime(driveTime)) if (parts.length === 0) return null @@ -718,16 +718,16 @@ export default function PlaceDetail() {
{existingStopIndex >= 0 ? ( Added as stop {String.fromCharCode(65 + existingStopIndex)} @@ -735,7 +735,7 @@ export default function PlaceDetail() { ) : (