chore: removed unnecessary lines
This commit is contained in:
@@ -289,7 +289,6 @@ const progress = createResource({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onSuccess(data) {
|
onSuccess(data) {
|
||||||
console.log(data)
|
|
||||||
lessonProgress.value = data
|
lessonProgress.value = data
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
@@ -336,13 +335,9 @@ watch(
|
|||||||
)
|
)
|
||||||
|
|
||||||
const startTimer = () => {
|
const startTimer = () => {
|
||||||
console.log('starting timer')
|
|
||||||
timerInterval = setInterval(() => {
|
timerInterval = setInterval(() => {
|
||||||
timer.value++
|
timer.value++
|
||||||
console.log(timer.value)
|
|
||||||
if (timer.value == 30) {
|
if (timer.value == 30) {
|
||||||
console.log('30 seconds passed')
|
|
||||||
console.log(lesson.data?.title)
|
|
||||||
clearInterval(timerInterval)
|
clearInterval(timerInterval)
|
||||||
markProgress()
|
markProgress()
|
||||||
}
|
}
|
||||||
@@ -350,7 +345,6 @@ const startTimer = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onBeforeUnmount(() => {
|
onBeforeUnmount(() => {
|
||||||
console.log('clearing interval')
|
|
||||||
clearInterval(timerInterval)
|
clearInterval(timerInterval)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user