diff --git a/frontend/src/lib/play/end.svelte b/frontend/src/lib/play/end.svelte index 39b335c..f4c5bf4 100644 --- a/frontend/src/lib/play/end.svelte +++ b/frontend/src/lib/play/end.svelte @@ -64,6 +64,9 @@ } }; let winners = getWinnersSorted(); + $: { + console.log(winners, winners_arr); + }
@@ -75,7 +78,7 @@ {$t('play_page.1st_place')}: {winners_arr[0]} {$t('play_page.with_out_of', { - correct_questions: winners[winners_arr[1]] ?? 0, + correct_questions: winners[winners_arr[0]] ?? 0, total_question_count: quiz_data.questions.length })} diff --git a/frontend/src/lib/play/question.svelte b/frontend/src/lib/play/question.svelte index 6d1469d..29869c8 100644 --- a/frontend/src/lib/play/question.svelte +++ b/frontend/src/lib/play/question.svelte @@ -93,15 +93,17 @@ {#await import('svelte-range-slider-pips')} {:then c} - +
+ +
{:else if game_data.questions[parseInt(question_index)].type === QuizQuestionType.RANGE} -

+ + {#await import('svelte-range-slider-pips')} + + {:then c} +

+ +
+ {/await} {/if}