fix: multiply standing cost by purchase quantity (#1948)
Closes #1945 Reviewed-on: OpenWF/SpaceNinjaServer#1948 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									f7906c91e3
								
							
						
					
					
						commit
						ec9dc2aa5f
					
				@ -223,10 +223,10 @@ export const handlePurchase = async (
 | 
			
		||||
                                purchaseResponse.Standing = [
 | 
			
		||||
                                    {
 | 
			
		||||
                                        Tag: syndicateTag,
 | 
			
		||||
                                        Standing: favour.standingCost
 | 
			
		||||
                                        Standing: favour.standingCost * purchaseRequest.PurchaseParams.Quantity
 | 
			
		||||
                                    }
 | 
			
		||||
                                ];
 | 
			
		||||
                                affiliation.Standing -= favour.standingCost;
 | 
			
		||||
                                affiliation.Standing -= favour.standingCost * purchaseRequest.PurchaseParams.Quantity;
 | 
			
		||||
                            }
 | 
			
		||||
                        }
 | 
			
		||||
                    }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user