fix bug
This commit is contained in:
		
							parent
							
								
									d03cc9eec2
								
							
						
					
					
						commit
						b1b4aa9ffd
					
				@ -15,8 +15,7 @@ const PurchaseItem = (item: Item, quantity: number, usePremium: boolean, price:
 | 
				
			|||||||
            }
 | 
					            }
 | 
				
			||||||
        ];
 | 
					        ];
 | 
				
			||||||
        newInventoryChanges.Suits = newSuits;
 | 
					        newInventoryChanges.Suits = newSuits;
 | 
				
			||||||
    }
 | 
					    } else if ((item as Weapon).productCategory == "LongGuns") {
 | 
				
			||||||
    if ((item as Weapon).productCategory == "LongGuns") {
 | 
					 | 
				
			||||||
        const newLongGuns: StoreItem[] = [
 | 
					        const newLongGuns: StoreItem[] = [
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                ItemType: item.uniqueName,
 | 
					                ItemType: item.uniqueName,
 | 
				
			||||||
@ -25,8 +24,7 @@ const PurchaseItem = (item: Item, quantity: number, usePremium: boolean, price:
 | 
				
			|||||||
            }
 | 
					            }
 | 
				
			||||||
        ];
 | 
					        ];
 | 
				
			||||||
        newInventoryChanges.LongGuns = newLongGuns;
 | 
					        newInventoryChanges.LongGuns = newLongGuns;
 | 
				
			||||||
    }
 | 
					    } else if ((item as Weapon).productCategory == "Pistols") {
 | 
				
			||||||
    if ((item as Weapon).productCategory == "Pistols") {
 | 
					 | 
				
			||||||
        const newPistols: StoreItem[] = [
 | 
					        const newPistols: StoreItem[] = [
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                ItemType: item.uniqueName,
 | 
					                ItemType: item.uniqueName,
 | 
				
			||||||
@ -35,8 +33,7 @@ const PurchaseItem = (item: Item, quantity: number, usePremium: boolean, price:
 | 
				
			|||||||
            }
 | 
					            }
 | 
				
			||||||
        ];
 | 
					        ];
 | 
				
			||||||
        newInventoryChanges.Pistols = newPistols;
 | 
					        newInventoryChanges.Pistols = newPistols;
 | 
				
			||||||
    }
 | 
					    } else if ((item as Weapon).productCategory == "Melee") {
 | 
				
			||||||
    if ((item as Weapon).productCategory == "Melee") {
 | 
					 | 
				
			||||||
        const newMelee: StoreItem[] = [
 | 
					        const newMelee: StoreItem[] = [
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                ItemType: item.uniqueName,
 | 
					                ItemType: item.uniqueName,
 | 
				
			||||||
@ -45,8 +42,7 @@ const PurchaseItem = (item: Item, quantity: number, usePremium: boolean, price:
 | 
				
			|||||||
            }
 | 
					            }
 | 
				
			||||||
        ];
 | 
					        ];
 | 
				
			||||||
        newInventoryChanges.Melee = newMelee;
 | 
					        newInventoryChanges.Melee = newMelee;
 | 
				
			||||||
    }
 | 
					    } else if (item as Misc) {
 | 
				
			||||||
    if (item as Misc) {
 | 
					 | 
				
			||||||
        const newMisc: StoreItem[] = [
 | 
					        const newMisc: StoreItem[] = [
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                ItemType: item.uniqueName,
 | 
					                ItemType: item.uniqueName,
 | 
				
			||||||
@ -54,8 +50,7 @@ const PurchaseItem = (item: Item, quantity: number, usePremium: boolean, price:
 | 
				
			|||||||
            }
 | 
					            }
 | 
				
			||||||
        ];
 | 
					        ];
 | 
				
			||||||
        newInventoryChanges.MiscItems = newMisc;
 | 
					        newInventoryChanges.MiscItems = newMisc;
 | 
				
			||||||
    }
 | 
					    } else if (item as Skin) {
 | 
				
			||||||
    if (item as Skin) {
 | 
					 | 
				
			||||||
        newInventoryChanges.WishlistChanges = [];
 | 
					        newInventoryChanges.WishlistChanges = [];
 | 
				
			||||||
        newInventoryChanges.WishlistChanges.push(parseString(item.uniqueName));
 | 
					        newInventoryChanges.WishlistChanges.push(parseString(item.uniqueName));
 | 
				
			||||||
        const newFlavourItem: StoreItem[] = [
 | 
					        const newFlavourItem: StoreItem[] = [
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user