forked from crowetic/commerce
Minor life improvement
This commit is contained in:
parent
5cfa8241f6
commit
56ff15c91d
@ -63,7 +63,7 @@ const Item = ({
|
|||||||
try {
|
try {
|
||||||
// If this action succeeds then there's no need to do `setRemoving(true)`
|
// If this action succeeds then there's no need to do `setRemoving(true)`
|
||||||
// because the component will be removed from the view
|
// because the component will be removed from the view
|
||||||
await removeItem({ id: String(item.id) })
|
await removeItem(item)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
setRemoving(false)
|
setRemoving(false)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user