Skip to content

Commit

Permalink
Fix week opening logic
Browse files Browse the repository at this point in the history
  • Loading branch information
ajuvonen committed May 28, 2024
1 parent 329e979 commit e0efa02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/ScheduleView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const reset = useReset();
watch(
() => weeks.value.length,
(newValue, oldValue) => {
if (newValue > oldValue) {
if (newValue < oldValue) {
openWeek.value = newValue - 1 || 0;
}
},
Expand Down

0 comments on commit e0efa02

Please sign in to comment.