Merge pull request #39 from ideskov/master
Avoid sending duplicate PUT requests when toggling completion
This commit is contained in:
commit
35dc319a76
@ -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'
|
||||||
}`}
|
}`}
|
||||||
|
Loading…
Reference in New Issue
Block a user