From 9456c260dd00bd8d3071d774a3878cbc8f88a85b Mon Sep 17 00:00:00 2001 From: Chika Date: Tue, 1 Dec 2020 19:48:52 +0300 Subject: [PATCH] show http errors --- src/client/stores/CalculationStore/Effects/action.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/client/stores/CalculationStore/Effects/action.ts b/src/client/stores/CalculationStore/Effects/action.ts index 0ea2286..96fb808 100644 --- a/src/client/stores/CalculationStore/Effects/action.ts +++ b/src/client/stores/CalculationStore/Effects/action.ts @@ -332,8 +332,9 @@ const actions: TAction = { description: err.response && err.response.data && - err.response.data.errors && - err.response.data.errors.join(', '), + ((err.response.data.errors && + err.response.data.errors.join(', ')) || + err.response.data), })(); unlockButtons();