From a15d585045abd13ccb5a95c493bd7d1678e5f1c7 Mon Sep 17 00:00:00 2001 From: Chika Date: Sun, 15 Nov 2020 20:30:17 +0300 Subject: [PATCH] fix calculation massages --- src/client/stores/CalculationStore/Effects/action.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/client/stores/CalculationStore/Effects/action.ts b/src/client/stores/CalculationStore/Effects/action.ts index 2b510d4..1e39473 100644 --- a/src/client/stores/CalculationStore/Effects/action.ts +++ b/src/client/stores/CalculationStore/Effects/action.ts @@ -289,6 +289,9 @@ const actions: TAction = { message.success({ content: 'Расчет завершен успешно!', duration: 5, + style: { + marginTop: '7vh', + }, }); const { sumWithVatColumn, vatColumn, sumRepaymentColumn } = res.columns; @@ -311,10 +314,10 @@ const actions: TAction = { return { ...res, ...preparedData }; }) .catch(err => { - message.error({ - content: 'Произошла ошибка во время расчета!', - duration: 5, - }); + openNotification({ + type: 'error', + title: 'Ошибка во время расчета!', + })(); throw err; }); },