From 29f8bec0466d35ffe12e341cc87000cdf33705da Mon Sep 17 00:00:00 2001 From: Erik Date: Wed, 15 Jul 2026 08:48:27 +0200 Subject: [PATCH] fix(frontend): only show weapon-type chips when item type is Weapons Co-Authored-By: Claude Fable 5 --- frontend/src/components/inventory/ActiveChips.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/inventory/ActiveChips.tsx b/frontend/src/components/inventory/ActiveChips.tsx index 95e324a0..dc8b688f 100644 --- a/frontend/src/components/inventory/ActiveChips.tsx +++ b/frontend/src/components/inventory/ActiveChips.tsx @@ -15,7 +15,7 @@ export function ActiveChips({ search }: { search: InventorySearch }) { label: f.itemType[0].toUpperCase() + f.itemType.slice(1), remove: () => update({ itemType: 'all', weaponTypes: [] }), }); - for (const wt of f.weaponTypes) { + if (f.itemType === 'weapon') for (const wt of f.weaponTypes) { const label = WEAPON_TYPES.find(w => w.value === wt)?.label ?? wt; chips.push({ label, remove: () => update({ weaponTypes: f.weaponTypes.filter(x => x !== wt) }) }); }