From e18f75a60cea669cb9b33a67a7785474d844064a Mon Sep 17 00:00:00 2001 From: Dev Date: Mon, 8 Jan 2024 21:14:13 +0000 Subject: [PATCH] Cast trader property to number before use --- project/src/services/RepairService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/src/services/RepairService.ts b/project/src/services/RepairService.ts index ef9c1531..dd1a8831 100644 --- a/project/src/services/RepairService.ts +++ b/project/src/services/RepairService.ts @@ -68,7 +68,7 @@ export class RepairService const priceCoef = this.traderHelper.getLoyaltyLevel(traderId, pmcData).repair_price_coef; const traderRepairDetails = this.traderHelper.getTrader(traderId, sessionID).repair; - const repairQualityMultiplier = traderRepairDetails.quality; + const repairQualityMultiplier = Number(traderRepairDetails.quality); const repairRate = (priceCoef <= 0) ? 1 : (priceCoef / 100 + 1); const itemToRepairDetails = this.databaseServer.getTables().templates.items[itemToRepair._tpl];