Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisinajar committed May 7, 2024
1 parent 5115d41 commit 9ad4bc3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/game/inventory/equipment-slot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,11 @@ export function EquipmentSlot({
},
) as InventoryItem[];

const equippedItem = items.find((item) => item.id === equipped);
if (equippedItem && !uniqueItems.find((item) => item.id === equipped)) {
uniqueItems.push(equippedItem);
}

return (
<React.Fragment>
<div>
Expand Down

0 comments on commit 9ad4bc3

Please sign in to comment.