fix missed notes count / fc
All checks were successful
Deploy / deploy (push) Successful in 4m56s

This commit is contained in:
Lee 2024-10-03 18:36:30 +01:00
parent 62ca4de74c
commit df30a4ecf0

@ -87,12 +87,10 @@ const badges: ScoreBadge[] = [
{ {
name: "Full Combo", name: "Full Combo",
create: (score: ScoreSaberScoreToken) => { create: (score: ScoreSaberScoreToken) => {
const fullCombo = score.missedNotes === 0;
return ( return (
<> <>
<p>{fullCombo ? <span className="text-green-400">FC</span> : formatNumberWithCommas(score.missedNotes)}</p> <p>{score.fullCombo ? <span className="text-green-400">FC</span> : formatNumberWithCommas(score.missedNotes + score.badCuts)}</p>
<XMarkIcon className={clsx("w-5 h-5", fullCombo ? "hidden" : "text-red-400")} /> <XMarkIcon className={clsx("w-5 h-5", score.fullCombo ? "hidden" : "text-red-400")} />
</> </>
); );
}, },