Fix empty screen before first question is shown

This commit is contained in:
Mawoka
2026-04-08 13:48:53 +02:00
parent b092eddbb0
commit 0a371b39dc
2 changed files with 1 additions and 4 deletions
+1 -1
View File
@@ -164,7 +164,7 @@ SPDX-License-Identifier: MPL-2.0
{/if}
{/if}
<br />
{#if get_question_title(selected_question + 1, quiz_data) === '' && selected_question + 1 === 0}
{#if selected_question === -1}
<div class="flex flex-col justify-center w-screen h-full">
<h1 class="text-7xl text-center">{@html quiz_data.title}</h1>
<p class="text-3xl pt-8 text-center">{@html quiz_data.description}</p>
@@ -10,9 +10,6 @@ SPDX-License-Identifier: MPL-2.0
import type { Socket } from 'socket.io-client';
import { getLocalization } from '$lib/i18n';
interface Props {
bg_color: string;
selected_question: number;