MVP #5 #68

Merged
matthieu42morin merged 3 commits from master into deploy/prod 2023-03-08 20:26:35 +00:00
2 changed files with 8 additions and 11 deletions
Showing only changes of commit f58aa9be32 - Show all commits

View File

@ -1,12 +1,9 @@
<script lang="ts">
import Layout from '../Components/Layout.svelte'
import Input from '../../../lib/components/Inputs/Input.svelte'
import { checkPoint } from '$lib/TStypes/experiences'
import { answer } from '$lib/utils/database/game'
export let data: { name: string; checkPoint: checkPoint }
const { checkPoint, name } = data
let myAnswer = ''
export let nextQuestion
</script>
@ -16,7 +13,6 @@
control={'not-control'}
nextQuestion={() => {
nextQuestion()
myAnswer = ''
}}
>
<span slot="title">{name}</span>

View File

@ -41,7 +41,9 @@
const nextQuestion = () => {
//další otázka
if (control !== null) {
console.log({ control })
control = null
if (clientAnswers.pos === clientAnswers.end) view = 'end'
else {
@ -49,7 +51,6 @@
view = 'map'
}
}
}
//let answers
//$: if (clientAnswers.pos < clientAnswers.end) answers = parseQuestion(gameData.questions[clientAnswers.pos].answer, gameData.questions[clientAnswers.pos].type) //delete