From ec9dc2aa5fe6830d7aec21a5c71986dac839b12c Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Thu, 1 May 2025 13:54:27 -0700 Subject: [PATCH] fix: multiply standing cost by purchase quantity (#1948) Closes #1945 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/1948 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com> --- src/services/purchaseService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/purchaseService.ts b/src/services/purchaseService.ts index 728f6570..38cfd3d1 100644 --- a/src/services/purchaseService.ts +++ b/src/services/purchaseService.ts @@ -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; } } }