Skip to content

Commit

Permalink
!!todos.length
Browse files Browse the repository at this point in the history
  • Loading branch information
HaniaNassalska committed Sep 27, 2023
1 parent 3538b70 commit 9d8861a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/components/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@ export const Header = () => {

return (
<header className="todoapp__header">
{todos.length
&& (
<ToggleButton />
)}
{!!todos.length && (
<ToggleButton />
)}
<Input />
</header>
);
Expand Down

0 comments on commit 9d8861a

Please sign in to comment.