fix: broken order page due to missing inventory (#9083)

This commit is contained in:
Riqwan Thamir authored and GitHub committed 2024-09-10 13:24:13 +00:00
1 parent 3e7d4ddcd5
commit e9e0267aa8
1 file changed
+2 -2
@@ -386,8 +386,8 @@ const Item = ({
}) => {
const { t } = useTranslation()
const isInventoryManaged = item.variant?.manage_inventory
const hasInventoryKit = (item.variant.inventory_items?.length || 0) > 1
const hasInventoryKit =
isInventoryManaged && (item.variant?.inventory_items?.length || 0) > 1
return (
<>