fix the { SingleAnswer: part not being in many places
This commit is contained in:
parent
9da2ddc123
commit
47a6e59eb9
4 changed files with 5 additions and 5 deletions
|
@ -72,7 +72,7 @@ export let DefaultQuestions = [
|
|||
timeLimit: 5,
|
||||
type: "SingleAnswer",
|
||||
options: ["Yes :)", "No :("],
|
||||
CorrectOption: 0,
|
||||
CorrectOption: { SingleAnswer: 0 },
|
||||
hasMedia: true,
|
||||
mediaURL: "https://github.com/RezHackXYZ.png",
|
||||
},
|
||||
|
@ -90,7 +90,7 @@ export let DefaultQuestions = [
|
|||
"Facebook",
|
||||
"Twitter",
|
||||
],
|
||||
CorrectOption: 4,
|
||||
CorrectOption: { SingleAnswer: 4 },
|
||||
hasMedia: false,
|
||||
mediaURL: null,
|
||||
},
|
||||
|
|
|
@ -129,7 +129,7 @@
|
|||
name="options"
|
||||
class="ratio"
|
||||
value={index}
|
||||
bind:group={QuestionsData.v[selectedQuestionIndex.v].CorrectOption}
|
||||
bind:group={QuestionsData.v[selectedQuestionIndex.v].CorrectOption.SingleAnswer}
|
||||
/>
|
||||
<input type="text" placeholder="Option 1" bind:value={Option} class="input w-1/3" />
|
||||
<button
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
timeLimit: 15,
|
||||
type: "SingleAnswer",
|
||||
options: ["", "", "", ""],
|
||||
CorrectOption: null,
|
||||
CorrectOption: { SingleAnswer:null},
|
||||
hasMedia: false,
|
||||
mediaURL: null,
|
||||
});
|
||||
|
|
|
@ -6,7 +6,7 @@ export let QuestionsData = $state({
|
|||
timeLimit: 15,
|
||||
type: "SingleAnswer",
|
||||
options: ["", "", "", ""],
|
||||
CorrectOption: null,
|
||||
CorrectOption: { SingleAnswer: null },
|
||||
hasMedia: false,
|
||||
mediaURL: null
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue