chore: removed unnecessary lines

This commit is contained in:
Jannat Patel
2024-07-12 20:17:42 +05:30
parent 4943e0e902
commit 166996d77a

View File

@@ -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)
}) })