From 8cfc4caef1510b4cb02220c89da8de3084c4a400 Mon Sep 17 00:00:00 2001 From: Mawoka Date: Sun, 1 Oct 2023 11:02:27 +0200 Subject: [PATCH] :bug: Fixed admin crashing when using specific question-types --- frontend/src/lib/play/admin/results.svelte | 36 ++++++++++++---------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/frontend/src/lib/play/admin/results.svelte b/frontend/src/lib/play/admin/results.svelte index baecac2..f263a01 100644 --- a/frontend/src/lib/play/admin/results.svelte +++ b/frontend/src/lib/play/admin/results.svelte @@ -4,13 +4,15 @@ SPDX-FileCopyrightText: 2023 Marlon W (Mawoka) SPDX-License-Identifier: MPL-2.0 --> - -
-
+
+
- +
- {$t('words.name')} - + {#if show_new_score_clicked} - {/if} {#each player_names as player, i (player)} - - + + {#if show_new_score_clicked}
{$t('words.name')}{$t('words.point', { count: 2 })}{$t('words.point', { count: 2 })}{$t('play_page.points_added')} + {$t('play_page.points_added')}
3} class="p-2 border-r border-r-black">{player} 3} class="p-2">{data[player]} 3} class='p-2 border-r border-r-black'>{player} 3} class='p-2'>{data[player]} 3} - class="p-2" + class='p-2' class:text-red-600={score_by_username[player] === 0 || score_by_username[player] === undefined} > @@ -127,7 +129,9 @@ SPDX-License-Identifier: MPL-2.0
-
- -
+ {#if [QuizQuestionType.ABCD, QuizQuestionType.VOTING, QuizQuestionType.TEXT].includes(question.type)} +
+ +
+ {/if}