Sort tomorrow group correctly

This commit is contained in:
2026-03-12 14:35:43 +00:00
parent 5e61a50f25
commit 9d33ba796a
+2 -2
View File
@@ -38,7 +38,7 @@ const groupedTodos = computed(() => {
groups['today'].push(todo)
}
// tomorrow
if (daysFromNow(dueDate) === 1) {
else if (daysFromNow(dueDate) === 1) {
if (!groups['tomorrow']) groups['tomorrow'] = []
groups['tomorrow'].push(todo)
}
@@ -170,4 +170,4 @@ const shouldDisplay = (todo: Todo) => {
</ul>
</div>
</div>
</template>
</template>