Skip to content

Commit

Permalink
fix useVue reactive props.
Browse files Browse the repository at this point in the history
  • Loading branch information
Stevie-Ray committed Aug 23, 2024
1 parent 110dd09 commit 87eb2d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/components/organisms/WorkoutTimer/WorkoutTimer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const exerciseTime = computed<number>(() => {
const requestWakeLock = () => {
try {
isSupported && !isActive ? request('screen') : null
isSupported.value && !isActive.value ? request('screen') : null
} catch (err: unknown) {
if (err instanceof Error) {
// eslint-disable-next-line no-console
Expand Down Expand Up @@ -187,12 +187,12 @@ const countDown = () => {
}
const toggleWorkout = () => {
!timerPaused.value && isSupported && isActive ? release() : request('screen')
!timerPaused.value && isSupported.value && isActive.value ? release() : request('screen')
timerPaused.value = !timerPaused.value
}
const stopTimer = () => {
isActive ? release() : null
isActive.value ? release() : null
if (timer !== null) {
clearInterval(timer)
timer = null
Expand Down

0 comments on commit 87eb2d2

Please sign in to comment.