Update inventoryService.ts
This commit is contained in:
		
							parent
							
								
									9a646e0022
								
							
						
					
					
						commit
						1f6da504d6
					
				@ -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 };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user