diff --git a/frontend/src/components/item-card/item-card.jsx b/frontend/src/components/item-card/item-card.jsx index 1a50232..c51f95e 100644 --- a/frontend/src/components/item-card/item-card.jsx +++ b/frontend/src/components/item-card/item-card.jsx @@ -23,11 +23,11 @@ export const Cost = ({ cost }) => ( ); -const CapacityChip = ({ capacity, isFull, remainingCapacity }) => ( +const FullCapacityChip = () => ( { const [moreInfoModalVisibility, setMoreInfoModalVisibility] = useState(false); const hasBought = purchaseState === 2; + const shouldShowFullCapacity = isFull || remainingCapacity === 0; const handleClickOnMoreInfo = () => { setMoreInfoModalVisibility(true); @@ -154,7 +155,7 @@ const ItemCard = ({ {levelComponentMapping[level]} {!hasBought && } - {!hasBought && } + {!hasBought && shouldShowFullCapacity && }