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) }) }); }