From c541c158df32d97f470782a3c2c9a6bbb733fd28 Mon Sep 17 00:00:00 2001 From: Maurice Date: Thu, 23 Jul 2026 23:40:58 +0200 Subject: [PATCH] fix(dashboard): keep the generic line up through the stats slot for travelers with no places yet --- client/src/components/FourZero/NoFearShow.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/client/src/components/FourZero/NoFearShow.tsx b/client/src/components/FourZero/NoFearShow.tsx index 3ed54ad72..6bf5605b8 100644 --- a/client/src/components/FourZero/NoFearShow.tsx +++ b/client/src/components/FourZero/NoFearShow.tsx @@ -217,9 +217,10 @@ export default function NoFearShow({ onClose }: { onClose: () => void }) { const cue = cueIdx >= 0 ? CUES[cueIdx] : null const lineKey = cue?.line ?? null // The personal-stats line only exists when the traveler's data arrived; the - // yourPlaces line falls back to the generic "every light" line without it. + // yourPlaces line falls back to the generic "every light" line without it, + // and that line simply stays up through the stats slot (same text = no remount). let lineText: string | null = null - if (lineKey === 'yourStatsCountries') lineText = statsRef.current?.line ?? null + if (lineKey === 'yourStatsCountries') lineText = statsRef.current?.line ?? copy.lines.everyDot else if (lineKey === 'yourPlaces') lineText = statsRef.current ? copy.lines.yourPlaces : copy.lines.everyDot else if (lineKey) lineText = copy.lines[lineKey] const hard = !!cue?.hard @@ -241,7 +242,7 @@ export default function NoFearShow({ onClose }: { onClose: () => void }) { {/* The lines. */} {!anthem && lineText && flashIdx < 0 && (
-

{lineText}

+

{lineText}

)}