fix: multiply standing cost by purchase quantity
All checks were successful
Build / build (push) Successful in 56s
Build / build (pull_request) Successful in 1m39s

This commit is contained in:
Sainan 2025-05-01 13:07:32 +02:00
parent c4b2248df5
commit deda627413

View File

@ -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;
}
}
}