Minor life improvement

This commit is contained in:
Luis Alvarez 2021-02-02 20:18:31 -05:00
parent 5cfa8241f6
commit 56ff15c91d

View File

@ -63,7 +63,7 @@ const Item = ({
try {
// If this action succeeds then there's no need to do `setRemoving(true)`
// because the component will be removed from the view
await removeItem({ id: String(item.id) })
await removeItem(item)
} catch (error) {
setRemoving(false)
}