diff --git a/frontend/src/routes/results/[result_id]/question_overview.svelte b/frontend/src/routes/results/[result_id]/question_overview.svelte index 7a67da3..3ee1aab 100644 --- a/frontend/src/routes/results/[result_id]/question_overview.svelte +++ b/frontend/src/routes/results/[result_id]/question_overview.svelte @@ -64,7 +64,7 @@

{#if question_open === i} -
+
{/if} diff --git a/frontend/src/routes/results/[result_id]/question_tab_thing.svelte b/frontend/src/routes/results/[result_id]/question_tab_thing.svelte index 3bad81c..0570c38 100644 --- a/frontend/src/routes/results/[result_id]/question_tab_thing.svelte +++ b/frontend/src/routes/results/[result_id]/question_tab_thing.svelte @@ -26,15 +26,6 @@ } return count; }; - const get_answers_for_answer = (answer: string): Array => { - let ret_answers = []; - for (const a of answers) { - if (a.answer === answer) { - ret_answers.push(a); - } - } - return ret_answers; - };
@@ -43,7 +34,9 @@ {#each question.answers as answer}

{answer.answer}

-
+

{get_answer_count_for_answer(answer.answer)}

+

+ {#if answer.right}✅{:else}❌{/if} +

{/each}
-
+
{(answer.time_taken / 1000).toFixed(3)}s - + {/each}
{answer.score} {answer.time_taken} {answer.answer}{answer.right}{#if answer.right}✅{:else}❌{/if}