From fb32466c7604bc5f3f74d5db3b61c094cdc64bd5 Mon Sep 17 00:00:00 2001 From: Dev Date: Fri, 1 Nov 2024 13:37:26 +0000 Subject: [PATCH] use correct function to check if request is from trader --- project/src/services/PaymentService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/project/src/services/PaymentService.ts b/project/src/services/PaymentService.ts index d7bef550..71115fbd 100644 --- a/project/src/services/PaymentService.ts +++ b/project/src/services/PaymentService.ts @@ -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); }