commit
7507adf77c
|
@ -8,6 +8,8 @@
|
||||||
export let myAnswer
|
export let myAnswer
|
||||||
|
|
||||||
let myAnswers = new Array(checkPoint.CPOptions.length).fill(false)
|
let myAnswers = new Array(checkPoint.CPOptions.length).fill(false)
|
||||||
|
export let clear = false
|
||||||
|
$: if (clear) myAnswers = new Array(checkPoint.CPOptions.length).fill(false)
|
||||||
$: myAnswer = checkPoint.CPOptions.filter((item, i) => {
|
$: myAnswer = checkPoint.CPOptions.filter((item, i) => {
|
||||||
if (myAnswers[i] === true) return item
|
if (myAnswers[i] === true) return item
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue