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,
|
timeLimit: 5,
|
||||||
type: "SingleAnswer",
|
type: "SingleAnswer",
|
||||||
options: ["Yes :)", "No :("],
|
options: ["Yes :)", "No :("],
|
||||||
CorrectOption: 0,
|
CorrectOption: { SingleAnswer: 0 },
|
||||||
hasMedia: true,
|
hasMedia: true,
|
||||||
mediaURL: "https://github.com/RezHackXYZ.png",
|
mediaURL: "https://github.com/RezHackXYZ.png",
|
||||||
},
|
},
|
||||||
|
@ -90,7 +90,7 @@ export let DefaultQuestions = [
|
||||||
"Facebook",
|
"Facebook",
|
||||||
"Twitter",
|
"Twitter",
|
||||||
],
|
],
|
||||||
CorrectOption: 4,
|
CorrectOption: { SingleAnswer: 4 },
|
||||||
hasMedia: false,
|
hasMedia: false,
|
||||||
mediaURL: null,
|
mediaURL: null,
|
||||||
},
|
},
|
||||||
|
|
|
@ -129,7 +129,7 @@
|
||||||
name="options"
|
name="options"
|
||||||
class="ratio"
|
class="ratio"
|
||||||
value={index}
|
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" />
|
<input type="text" placeholder="Option 1" bind:value={Option} class="input w-1/3" />
|
||||||
<button
|
<button
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
timeLimit: 15,
|
timeLimit: 15,
|
||||||
type: "SingleAnswer",
|
type: "SingleAnswer",
|
||||||
options: ["", "", "", ""],
|
options: ["", "", "", ""],
|
||||||
CorrectOption: null,
|
CorrectOption: { SingleAnswer:null},
|
||||||
hasMedia: false,
|
hasMedia: false,
|
||||||
mediaURL: null,
|
mediaURL: null,
|
||||||
});
|
});
|
||||||
|
|
|
@ -6,7 +6,7 @@ export let QuestionsData = $state({
|
||||||
timeLimit: 15,
|
timeLimit: 15,
|
||||||
type: "SingleAnswer",
|
type: "SingleAnswer",
|
||||||
options: ["", "", "", ""],
|
options: ["", "", "", ""],
|
||||||
CorrectOption: null,
|
CorrectOption: { SingleAnswer: null },
|
||||||
hasMedia: false,
|
hasMedia: false,
|
||||||
mediaURL: null
|
mediaURL: null
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue