improve: don't update currency when infiniteResources is enabled
This commit is contained in:
		
							parent
							
								
									392f63115e
								
							
						
					
					
						commit
						6798e09b50
					
				@ -93,6 +93,10 @@ export const updateSlots = async (accountId: string, slotName: SlotNames, slotAm
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
export const updateCurrency = async (price: number, usePremium: boolean, accountId: string) => {
 | 
			
		||||
    if (config.infiniteResources) {
 | 
			
		||||
        return {};
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    const inventory = await getInventory(accountId);
 | 
			
		||||
 | 
			
		||||
    if (usePremium) {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user