compare now with null check
This commit is contained in:
@@ -20,7 +20,7 @@ export const TodoList = (props: {
|
||||
return t.status == false;
|
||||
})
|
||||
.sort((a, b) => a.created - b.created)
|
||||
.sort((a, b) => b.priority.localeCompare(a.priority));
|
||||
.sort((a, b) => b.priority?.localeCompare(a.priority));
|
||||
}, [props.todos, props.hideDone]);
|
||||
|
||||
return (
|
||||
|
Reference in New Issue
Block a user