From 2fc8b265d259863aa6deba6637d3d05124dd984d Mon Sep 17 00:00:00 2001 From: Liam Date: Tue, 22 Oct 2024 17:55:05 +0100 Subject: [PATCH] fix previous score fc tooltip --- projects/website/src/components/score/badges/score-misses.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/projects/website/src/components/score/badges/score-misses.tsx b/projects/website/src/components/score/badges/score-misses.tsx index b6ef722..722dfda 100644 --- a/projects/website/src/components/score/badges/score-misses.tsx +++ b/projects/website/src/components/score/badges/score-misses.tsx @@ -26,6 +26,7 @@ export default function ScoreMissesBadge({ score, hideXMark }: ScoreMissesBadgeP bombCuts: (scoreImprovement.misses.bombCuts + misses.bombCuts) * -1, wallsHit: (scoreImprovement.misses.wallsHit - misses.wallsHit) * -1, }; + const previousScoreFc = previousScoreMisses?.misses == 0; return (
@@ -48,9 +49,10 @@ export default function ScoreMissesBadge({ score, hideXMark }: ScoreMissesBadgeP badCuts={previousScoreMisses.badCuts} bombCuts={previousScoreMisses.bombCuts} wallsHit={previousScoreMisses.wallsHit} + fullCombo={previousScoreFc} >
- {previousScoreMisses.misses == 0 ? ( + {previousScoreFc ? (

FC

) : ( formatNumberWithCommas(previousScoreMisses.misses)