From 9194bd7326803265fe5e5654a2fee883f06a3fc7 Mon Sep 17 00:00:00 2001 From: Chika Date: Mon, 24 Oct 2022 11:40:44 +0300 Subject: [PATCH] =?UTF-8?q?[fix]=20process/bonuses:=20=D0=BF=D0=BE=D0=BF?= =?UTF-8?q?=D1=80=D0=B0=D0=B2=D0=B8=D0=BB=D0=B8=20=D0=BF=D1=80=D0=BE=D0=B2?= =?UTF-8?q?=D0=B5=D1=80=D0=BA=D1=83=20sale=20bonus?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/process/bonuses/reactions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/process/bonuses/reactions.ts b/src/client/process/bonuses/reactions.ts index dbffe4d..55dcef5 100644 --- a/src/client/process/bonuses/reactions.ts +++ b/src/client/process/bonuses/reactions.ts @@ -75,7 +75,7 @@ export default function ($calculation: ICalculationStore) { if (evo_coefficient_bonus?.evo_sot_coefficient) { const max_sale_bonus = evo_coefficient_bonus.evo_sot_coefficient * 100; - if (parseFloat(saleBonus) > round(max_sale_bonus, 2)) { + if (round(saleBonus, 2) > round(max_sale_bonus, 2)) { $calculation.setValidation('tbxSaleBonus', false); openNotification({ type: 'error',