fix calculation massages

This commit is contained in:
Chika 2020-11-15 20:30:17 +03:00
parent 6a40e148a5
commit a15d585045

View File

@ -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;
});
},