Update inventoryService.ts
This commit is contained in:
parent
9a646e0022
commit
1f6da504d6
@ -331,9 +331,8 @@ export const addItem = async (
|
||||
|
||||
if (key.chainStages) {
|
||||
const key = addQuestKey(inventory, { ItemType: typeName });
|
||||
if (key) {
|
||||
return { InventoryChanges: { QuestKeys: [key] } };
|
||||
} else return { InventoryChanges: {} };
|
||||
if (!key) return { InventoryChanges: {} };
|
||||
return { InventoryChanges: { QuestKeys: [key] } };
|
||||
} else {
|
||||
const key = { ItemType: typeName, ItemCount: quantity };
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user