mirror of
https://github.com/vercel/commerce.git
synced 2025-03-14 22:42:33 +00:00
Minor life improvement
This commit is contained in:
parent
5cfa8241f6
commit
56ff15c91d
@ -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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user