Merge pull request #39 from ideskov/master

Avoid sending duplicate PUT requests when toggling completion
This commit is contained in:
Michael Irwin 2020-05-28 08:06:32 -04:00 committed by GitHub
commit 35dc319a76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -152,7 +152,6 @@ function ItemDisplay({ item, onItemUpdate, onItemRemoval }) {
} }
> >
<i <i
onClick={toggleCompletion}
className={`far ${ className={`far ${
item.completed ? 'fa-check-square' : 'fa-square' item.completed ? 'fa-check-square' : 'fa-square'
}`} }`}