use correct function to check if request is from trader

This commit is contained in:
Dev 2024-11-01 13:37:26 +00:00
parent 8055a00fc8
commit fb32466c76

View File

@ -102,7 +102,7 @@ export class PaymentService {
);
// Only update traders
if (this.traderHelper.traderEnumHasKey(request.tid)) {
if (this.traderHelper.traderEnumHasValue(request.tid)) {
pmcData.TradersInfo[request.tid].salesSum += costOfPurchaseInCurrency;
}
}
@ -120,7 +120,7 @@ export class PaymentService {
pmcData.TradersInfo[request.tid].salesSum += costOfPurchaseInCurrency;
}
if (this.traderHelper.traderEnumHasKey(request.tid)) {
if (this.traderHelper.traderEnumHasValue(request.tid)) {
this.traderHelper.lvlUp(request.tid, pmcData);
}