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} +

);