Sort tomorrow group correctly
This commit is contained in:
1 parent
5e61a50f25
commit
9d33ba796a
1 file changed
+2
-2
@@ -38,7 +38,7 @@ const groupedTodos = computed(() => {
|
|||||||
groups['today'].push(todo)
|
groups['today'].push(todo)
|
||||||
}
|
}
|
||||||
// tomorrow
|
// tomorrow
|
||||||
if (daysFromNow(dueDate) === 1) {
|
else if (daysFromNow(dueDate) === 1) {
|
||||||
if (!groups['tomorrow']) groups['tomorrow'] = []
|
if (!groups['tomorrow']) groups['tomorrow'] = []
|
||||||
groups['tomorrow'].push(todo)
|
groups['tomorrow'].push(todo)
|
||||||
}
|
}
|
||||||
@@ -170,4 +170,4 @@ const shouldDisplay = (todo: Todo) => {
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
Reference in new issue
Block a user