@tap-payments/auth-jsconnect 2.1.85-test → 2.1.86-test
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -55,7 +55,7 @@ import { ICONS_NAMES } from '../../../constants';
|
|
|
55
55
|
import CheckIcon from '@mui/icons-material/Check';
|
|
56
56
|
import { useAppDispatch, useAppSelector, useLanguage } from '../../../hooks';
|
|
57
57
|
import { handleOpen, handleCurrentActiveScreen, handleNextScreenStep, settingsSelector } from '../../../app/settings';
|
|
58
|
-
import { getScreenNameBasedOnFlow } from '../../../utils';
|
|
58
|
+
import { dangerousMessage, getScreenNameBasedOnFlow } from '../../../utils';
|
|
59
59
|
import API from '../../../api';
|
|
60
60
|
import Text from '../../../components/Text';
|
|
61
61
|
var Image = styled('img')(function (_a) {
|
|
@@ -199,12 +199,12 @@ export default function FlowsButtons(_a) {
|
|
|
199
199
|
var data = response.data;
|
|
200
200
|
var description = (((_a = data === null || data === void 0 ? void 0 : data.errors) === null || _a === void 0 ? void 0 : _a[0]) || {}).description;
|
|
201
201
|
if (description) {
|
|
202
|
-
|
|
202
|
+
dangerousMessage(description, settingsData.appConfig.onError);
|
|
203
203
|
return;
|
|
204
204
|
}
|
|
205
205
|
})
|
|
206
206
|
.catch(function (error) {
|
|
207
|
-
|
|
207
|
+
dangerousMessage(error.message || error, settingsData.appConfig.onError);
|
|
208
208
|
})
|
|
209
209
|
.finally(function () { })];
|
|
210
210
|
case 1:
|