Skip to content

Commit

Permalink
fix: today btn error on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
Jess Divers committed Nov 19, 2024
1 parent 830be7b commit 452f1f3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/lib-components/DateFilter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,12 @@ function goToToday() {
document?.activeElement?.blur()
}
else {
date.value = [new Date(), new Date()]
if (isMobile.value)

Check failure on line 87 in src/lib-components/DateFilter.vue

View workflow job for this annotation

GitHub Actions / eslint

'isMobile' was used before it was defined
// mobile does allow range selection
date.value = new Date()
else
date.value = [new Date(), new Date()]
todayBtnActive.value = true
}
}
Expand Down

0 comments on commit 452f1f3

Please sign in to comment.