diff --git a/resources/js/contest-judge-results/vote.tsx b/resources/js/contest-judge-results/vote.tsx index c969acfb4ad..83543ad82f8 100644 --- a/resources/js/contest-judge-results/vote.tsx +++ b/resources/js/contest-judge-results/vote.tsx @@ -40,19 +40,20 @@ export default function Vote(props: Props) { const category = props.contest.scoring_categories.find((x) => x.id === score.contest_scoring_category_id); return ( -
-
-
- -
+
+
+
+ +
- {category?.name} -
-
- {score.value}/{category?.max_value} + {category?.name} +
+
+ {score.value}/{category?.max_value} +
-
- )})} + ); + })}
{props.vote.comment != null &&
{props.vote.comment}
} diff --git a/resources/js/interfaces/contest-entry-json.ts b/resources/js/interfaces/contest-entry-json.ts index 731e2e2e855..078692207b1 100644 --- a/resources/js/interfaces/contest-entry-json.ts +++ b/resources/js/interfaces/contest-entry-json.ts @@ -5,11 +5,11 @@ import ContestJudgeVoteJson, { ContestJudgeVoteJsonForResults } from './contest- interface ContestEntryJsonAvailableIncludes { current_user_judge_vote: ContestJudgeVoteJson; + judge_votes: ContestJudgeVoteJson[]; results: { actual_name: string; votes: number; }; - judge_votes: ContestJudgeVoteJson[]; user: { id: number; username: string;