From 79bdb801ff33f2f0a6f835ae40a2ea97919a32c8 Mon Sep 17 00:00:00 2001 From: Liam Date: Sat, 19 Oct 2024 12:33:26 +0100 Subject: [PATCH] add no fail to acc --- projects/website/src/components/score/score-stats.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/projects/website/src/components/score/score-stats.tsx b/projects/website/src/components/score/score-stats.tsx index bd4a28b..fd687c3 100644 --- a/projects/website/src/components/score/score-stats.tsx +++ b/projects/website/src/components/score/score-stats.tsx @@ -5,6 +5,7 @@ import { ScoreBadge, ScoreBadges } from "@/components/score/score-badge"; import ScoreSaberScore from "@ssr/common/score/impl/scoresaber-score"; import ScoreSaberLeaderboard from "@ssr/common/leaderboard/impl/scoresaber-leaderboard"; import FullComboBadge from "@/components/score/badges/full-combo"; +import { Modifier } from "@ssr/common/score/modifier"; const badges: ScoreBadge[] = [ { @@ -55,16 +56,20 @@ const badges: ScoreBadge[] = [ accDetails += ` (${scoreBadge.min}% - ${scoreBadge.max}%)`; } + const failed = score.modifiers.includes("No Fail" as Modifier); return ( <>

{accDetails}

+ {failed &&

Failed

} } > -

{acc.toFixed(2)}%

+

+ {acc.toFixed(2)}% {failed && NF} +

);