use correct function to check if request is from trader
This commit is contained in:
parent
8055a00fc8
commit
fb32466c76
@ -102,7 +102,7 @@ export class PaymentService {
|
|||||||
);
|
);
|
||||||
|
|
||||||
// Only update traders
|
// Only update traders
|
||||||
if (this.traderHelper.traderEnumHasKey(request.tid)) {
|
if (this.traderHelper.traderEnumHasValue(request.tid)) {
|
||||||
pmcData.TradersInfo[request.tid].salesSum += costOfPurchaseInCurrency;
|
pmcData.TradersInfo[request.tid].salesSum += costOfPurchaseInCurrency;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -120,7 +120,7 @@ export class PaymentService {
|
|||||||
pmcData.TradersInfo[request.tid].salesSum += costOfPurchaseInCurrency;
|
pmcData.TradersInfo[request.tid].salesSum += costOfPurchaseInCurrency;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.traderHelper.traderEnumHasKey(request.tid)) {
|
if (this.traderHelper.traderEnumHasValue(request.tid)) {
|
||||||
this.traderHelper.lvlUp(request.tid, pmcData);
|
this.traderHelper.lvlUp(request.tid, pmcData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user