Small improvements to the playing-experience, mainly with range-answers

This commit is contained in:
Mawoka
2022-08-31 17:32:06 +02:00
parent 69b1e0f66f
commit 16c596d23d
3 changed files with 39 additions and 12 deletions
+4 -1
View File
@@ -64,6 +64,9 @@
}
};
let winners = getWinnersSorted();
$: {
console.log(winners, winners_arr);
}
</script>
<div>
@@ -75,7 +78,7 @@
{$t('play_page.1st_place')}: <span class="underline">{winners_arr[0]}</span>
<span
>{$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
})}</span
>