simplify
All checks were successful
Build / build (push) Successful in 54s
Build / build (pull_request) Successful in 1m41s

This commit is contained in:
Sainan 2025-05-16 09:16:50 +02:00
parent 4cfca8284a
commit 12bdfae1cf

View File

@ -157,9 +157,7 @@ export const applyStandingToVendorManifest = (
if (offer.Affiliation && offer.ReductionPerPositiveRank && offer.IncreasePerNegativeRank) {
const title: number = inventory.Affiliations.find(x => x.Tag == offer.Affiliation)?.Title ?? 0;
const factor =
1 +
(title < 0 ? offer.IncreasePerNegativeRank * title : offer.ReductionPerPositiveRank * title) *
-1;
1 + (title < 0 ? offer.IncreasePerNegativeRank : offer.ReductionPerPositiveRank) * title * -1;
//console.log(offer.Affiliation, title, factor);
if (factor) {
offer = { ...offer };