fix: broken order page due to missing inventory (#9083)
This commit is contained in:
+2
-2
@@ -386,8 +386,8 @@ const Item = ({
|
|||||||
}) => {
|
}) => {
|
||||||
const { t } = useTranslation()
|
const { t } = useTranslation()
|
||||||
const isInventoryManaged = item.variant?.manage_inventory
|
const isInventoryManaged = item.variant?.manage_inventory
|
||||||
|
const hasInventoryKit =
|
||||||
const hasInventoryKit = (item.variant.inventory_items?.length || 0) > 1
|
isInventoryManaged && (item.variant?.inventory_items?.length || 0) > 1
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|||||||
Reference in New Issue
Block a user