diff --git a/client/src/pages/JourneyDetailPage.tsx b/client/src/pages/JourneyDetailPage.tsx index a1807d29f..b869a7fa0 100644 --- a/client/src/pages/JourneyDetailPage.tsx +++ b/client/src/pages/JourneyDetailPage.tsx @@ -331,7 +331,10 @@ function JourneyDetailPageDesktop() {
{[ - { value: sortedDates.length, label: t('journey.stats.days') }, + // The journal's own days, not the ones a pending stay added to the + // timeline: "11 days" for a trip of 7 counts somebody else's data as + // the journey. + { value: dayGroups.size, label: t('journey.stats.days') }, { value: current.stats.places, label: t('journey.stats.places') }, { value: current.stats.entries, label: t('journey.stats.entries') }, { value: current.stats.photos, label: t('journey.stats.photos') }, @@ -421,7 +424,7 @@ function JourneyDetailPageDesktop() { {/* Timeline (desktop only — mobile uses fullscreen combined view above) */} {!isMobile && (
- {sortedDates.length === 0 && ( + {dayGroups.size === 0 && sortedDates.length === 0 && (