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

This commit is contained in:
Riqwan Thamir
2024-09-10 15:24:13 +02:00
committed by GitHub
parent 3e7d4ddcd5
commit e9e0267aa8

View File

@@ -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 (
<>