From 57001d01aee20b4046ec4810805f18bdf8924d84 Mon Sep 17 00:00:00 2001 From: Thi Nguyen Date: Wed, 18 Oct 2023 13:38:50 -0600 Subject: [PATCH] oops buggy --- src/TodoList.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TodoList.tsx b/src/TodoList.tsx index 2c8b6c7..54df735 100644 --- a/src/TodoList.tsx +++ b/src/TodoList.tsx @@ -20,8 +20,8 @@ interface TodoListStatsProps { const TodoListStats = (ps: TodoListStatsProps) => (
Completed {ps.completed} / {ps.total} - {ps.completed && ()} - {(ps.completed === ps.total && ps.total > 0) && well done!! 👏 🤩} + {ps.completed > 0 && ()} + {(ps.completed === ps.total && ps.total) && ( well done!! 👏 🤩)}
) const getTodoListStats = (todos: Todo[]): TodoListStatsProps => {