From 375e59fb6a9d9bcd22fca49238c63e4effd772ff Mon Sep 17 00:00:00 2001 From: Chika Date: Tue, 4 Oct 2022 15:35:11 +0300 Subject: [PATCH] add for 9bedfe8 --- process/payments/reactions.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/process/payments/reactions.ts b/process/payments/reactions.ts index 5febcf2..dcc4fb1 100644 --- a/process/payments/reactions.ts +++ b/process/payments/reactions.ts @@ -182,6 +182,7 @@ export default function paymentsReactions( } ); + const errorText = 'При виде графика "Легкий старт" 2, 3, 4 платежи должны возрастать'; let removeError: () => void; reaction( @@ -201,9 +202,7 @@ export default function paymentsReactions( const areEqualPayments = new Set(targetPayments).size === 1; if (!areEqual(targetPayments, sortedPayments) || areEqualPayments) { - removeError = $tables.payments.validation.addError( - "При виде графика 'Легкий старт', 2, 3, 4 платежи должны возрастать" - ); + removeError = $tables.payments.validation.addError(errorText); } else if (removeError) removeError(); } else if (removeError) removeError(); }