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

View File

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