fix error when trading in medallions with a syndicate not in inventory.Affiliations
This commit is contained in:
parent
1909dce784
commit
8ee22e9e88
@ -27,7 +27,9 @@ export const syndicateStandingBonusController: RequestHandler = async (req, res)
|
||||
let syndicate = inventory.Affiliations.find(x => x.Tag == request.Operation.AffiliationTag);
|
||||
if (!syndicate) {
|
||||
syndicate =
|
||||
inventory.Affiliations[inventory.Affiliations.push({ Tag: request.Operation.AffiliationTag, Standing: 0 })];
|
||||
inventory.Affiliations[
|
||||
inventory.Affiliations.push({ Tag: request.Operation.AffiliationTag, Standing: 0 }) - 1
|
||||
];
|
||||
}
|
||||
|
||||
const max = getMaxStanding(syndicateMeta, syndicate.Title ?? 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user