mirror of
https://github.com/vercel/commerce.git
synced 2025-06-29 18:01:21 +00:00
Small fix to secure cart empty state
This commit is contained in:
parent
a726f51edd
commit
37d58b2a59
@ -24,7 +24,7 @@ export const useCart = () => {
|
||||
items: data?.line_items.physical_items ?? [],
|
||||
isLoading: data === undefined,
|
||||
isError: error,
|
||||
isEmpty,
|
||||
isEmpty: isEmpty && data == null,
|
||||
subtotal,
|
||||
total,
|
||||
currency: data?.currency,
|
||||
|
Loading…
x
Reference in New Issue
Block a user