🐛 Small cosmetic fixes

This commit is contained in:
Mawoka
2022-08-02 13:25:42 +02:00
parent e314c4fb6f
commit df6ce8a8b2
3 changed files with 17 additions and 3 deletions
+10 -1
View File
@@ -25,6 +25,7 @@
import Editor from '$lib/editor.svelte';
import { getLocalization } from '$lib/i18n';
import { navbarVisible } from '$lib/stores';
import { QuizQuestionType } from '$lib/quiz_types';
navbarVisible.set(false);
@@ -40,6 +41,7 @@
interface Question {
question: string;
time: string;
type?: QuizQuestionType;
answers: Answer[];
}
@@ -61,7 +63,14 @@
description: '',
public: false,
title: '',
questions: [{ question: '', time: '20', answers: [{ right: false, answer: '' }] }]
questions: [
{
type: QuizQuestionType.ABCD,
question: '',
time: '20',
answers: [{ right: false, answer: '' }]
}
]
};
} else {
data = JSON.parse(from_localstorage);