forked from OpenWF/SpaceNinjaServer
chore: fix unnecessary condition
This commit is contained in:
parent
2187d9cd7e
commit
2eb28c4e89
@ -963,7 +963,7 @@ export const addStanding = (
|
||||
const max = getMaxStanding(syndicateMeta, syndicate.Title ?? 0);
|
||||
if (syndicate.Standing + gainedStanding > max) gainedStanding = max - syndicate.Standing;
|
||||
|
||||
if (!isMedallion || (isMedallion && syndicateMeta.medallionsCappedByDailyLimit)) {
|
||||
if (!isMedallion || syndicateMeta.medallionsCappedByDailyLimit) {
|
||||
if (gainedStanding > getStandingLimit(inventory, syndicateMeta.dailyLimitBin)) {
|
||||
gainedStanding = getStandingLimit(inventory, syndicateMeta.dailyLimitBin);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user