From c3e10a3e0e77d3178ad8a4ed413d418f1c5bf7ef Mon Sep 17 00:00:00 2001 From: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com> Date: Sun, 29 Dec 2024 01:16:36 +0100 Subject: [PATCH] clarify comment --- src/services/inventoryService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/inventoryService.ts b/src/services/inventoryService.ts index 8ed90575..526f96ad 100644 --- a/src/services/inventoryService.ts +++ b/src/services/inventoryService.ts @@ -433,8 +433,8 @@ 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)) { + // According to wiki exalted items unique for suit type, so we check if we don't already have that item + if (!inventory.SpecialItems.some(obj => obj.ItemType === itemName)) { const specialItemIndex = inventory.SpecialItems.push({ ItemType: itemName, Configs: [],