From 603c98e348062b0db9b4e8dd6c2a3d153a6d63d5 Mon Sep 17 00:00:00 2001 From: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com> Date: Sat, 28 Dec 2024 10:39:06 +0100 Subject: [PATCH] Update inventoryService.ts --- src/services/inventoryService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/inventoryService.ts b/src/services/inventoryService.ts index a901b5e4..8ed90575 100644 --- a/src/services/inventoryService.ts +++ b/src/services/inventoryService.ts @@ -434,7 +434,7 @@ export const addMechSuit = async (mechsuitName: string, accountId: string) => { export const addSpecialItem = async (itemName: string, accountId: string) => { const inventory = await getInventory(accountId); // According to wiki there is one exalted item per suit type, so we check if we don't already have that item - if (!inventory.SpecialItems.length || inventory.SpecialItems.some(obj => obj.ItemType !== itemName)) { + if (inventory.SpecialItems.length && inventory.SpecialItems.some(obj => obj.ItemType !== itemName)) { const specialItemIndex = inventory.SpecialItems.push({ ItemType: itemName, Configs: [],