Skip to content

Commit

Permalink
oops buggy
Browse files Browse the repository at this point in the history
  • Loading branch information
justthinguyen committed Oct 18, 2023
1 parent 1bbbe34 commit 57001d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TodoList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ interface TodoListStatsProps {
const TodoListStats = (ps: TodoListStatsProps) => (
<div className='todo-list-stats'>
Completed {ps.completed} / {ps.total}
{ps.completed && (<span className='completedCheck'>&#x2714;</span>)}
{(ps.completed === ps.total && ps.total > 0) && <span className='allDone'> well done!! 👏 🤩</span>}
{ps.completed > 0 && (<span className='completedCheck'>&#x2714;</span>)}
{(ps.completed === ps.total && ps.total) && (<span className='allDone'> well done!! 👏 🤩</span>)}
</div>
)
const getTodoListStats = (todos: Todo[]): TodoListStatsProps => {
Expand Down

0 comments on commit 57001d0

Please sign in to comment.