diff --git a/components/StartCard.tsx b/components/StartCard.tsx index 6749c89..624e926 100644 --- a/components/StartCard.tsx +++ b/components/StartCard.tsx @@ -247,6 +247,7 @@ export const StartCard = React.memo(({ // Get offline mode for the tour (defaults to 'optional') const offlineMode = getOfflineMode(tour); + const stopsCount = tour.stops.filter(item => item.type !== 'rating').length; return ( // No fixed height. We let the content define the height, and the parent measures it. @@ -270,7 +271,7 @@ export const StartCard = React.memo(({ - {tour.stops.length} {t.startCard.stops} + {stopsCount} {t.startCard.stops} diff --git a/components/TourSelectionCard.tsx b/components/TourSelectionCard.tsx index 38a5648..50d5c45 100644 --- a/components/TourSelectionCard.tsx +++ b/components/TourSelectionCard.tsx @@ -93,6 +93,7 @@ export const TourSelectionCard = React.memo(({ tour, onC const showImage = tourCard?.showImage !== false; const showDescription = tourCard?.showDescription !== false; const showMeta = tourCard?.showMeta !== false; + const stopsCount = tour.stops.filter(item => item.type !== 'rating').length; return ( (({ tour, onC - {tour.stops.length} {t.startCard.stops} + {stopsCount} {t.startCard.stops} )}