Update inventoryService.ts
All checks were successful
Build / build (18) (pull_request) Successful in 34s
Build / build (20) (pull_request) Successful in 1m1s
Build / build (22) (pull_request) Successful in 1m1s

This commit is contained in:
AMelonInsideLemon 2025-02-25 00:58:50 +01:00
parent 9a646e0022
commit 1f6da504d6

View File

@ -331,9 +331,8 @@ export const addItem = async (
if (key.chainStages) { if (key.chainStages) {
const key = addQuestKey(inventory, { ItemType: typeName }); const key = addQuestKey(inventory, { ItemType: typeName });
if (key) { if (!key) return { InventoryChanges: {} };
return { InventoryChanges: { QuestKeys: [key] } }; return { InventoryChanges: { QuestKeys: [key] } };
} else return { InventoryChanges: {} };
} else { } else {
const key = { ItemType: typeName, ItemCount: quantity }; const key = { ItemType: typeName, ItemCount: quantity };