diff --git a/src/admin/vote/Match.tsx b/src/admin/vote/Match.tsx index 791aad4..6d15201 100644 --- a/src/admin/vote/Match.tsx +++ b/src/admin/vote/Match.tsx @@ -59,30 +59,28 @@ export default function Match() { { choices.filter( (choice) => - choice.listIndex === - s.listIndex.toString() && - choice.grade === c.grade.toString() + choice.listIndex == s.listIndex && + choice.grade == c.grade )[0]?.name } {choices.filter( (choice) => - choice.listIndex === s.listIndex.toString() && - choice.grade === c.grade.toString() + choice.listIndex == s.listIndex && + choice.grade == c.grade ).length > 1 && " + " + (choices.filter( (choice) => - choice.listIndex === - s.listIndex.toString() && - choice.grade === c.grade.toString() + choice.listIndex == s.listIndex && + choice.grade == c.grade ).length - 1) + " weitere"} {choices.filter( (choice) => - choice.listIndex === s.listIndex.toString() && - choice.grade === c.grade.toString() + choice.listIndex == s.listIndex && + choice.grade == c.grade ).length < 1 && (