diff --git a/projects/website/src/components/score/score-modifiers.tsx b/projects/website/src/components/score/score-modifiers.tsx index eba45ba..f6549f2 100644 --- a/projects/website/src/components/score/score-modifiers.tsx +++ b/projects/website/src/components/score/score-modifiers.tsx @@ -14,14 +14,19 @@ type ScoreModifiersProps = { }; export function ScoreModifiers({ score, type }: ScoreModifiersProps) { + const modifiers = score.modifiers; + if (modifiers.length === 0) { + return
-
; + } + switch (type) { case "full": - return {score.modifiers.join(", ")}; + return {modifiers.join(", ")}; case "simple": return ( {Object.entries(Modifier) - .filter(mod => score.modifiers.includes(mod[1] as Modifier)) + .filter(mod => modifiers.includes(mod[1] as Modifier)) .map(mod => mod[0]) .join(",")}