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 ?? [],
|
items: data?.line_items.physical_items ?? [],
|
||||||
isLoading: data === undefined,
|
isLoading: data === undefined,
|
||||||
isError: error,
|
isError: error,
|
||||||
isEmpty,
|
isEmpty: isEmpty && data == null,
|
||||||
subtotal,
|
subtotal,
|
||||||
total,
|
total,
|
||||||
currency: data?.currency,
|
currency: data?.currency,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user