Skip to content

Commit

Permalink
fix counter
Browse files Browse the repository at this point in the history
  • Loading branch information
manch0ffline committed Nov 5, 2024
1 parent 9e0128f commit 836d558
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ export const Footer: React.FC<Props> = ({ howSort, setHowSort }) => {
return (
<footer className="todoapp__footer" data-cy="Footer">
<span className="todo-count" data-cy="TodosCounter">
{completedTodosCount} items left
{completedTodosCount}{' '}
{completedTodosCount === 1 ? 'item left' : 'items left'}
</span>

<nav className="filter" data-cy="Filter">
Expand Down

0 comments on commit 836d558

Please sign in to comment.