@salesgenterp/ui-components 0.4.544 → 0.4.545
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.
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +5 -1
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14342,7 +14342,11 @@ var CheckoutPageComponentWrapper = function CheckoutPageComponentWrapper(_ref) {
|
|
|
14342
14342
|
}
|
|
14343
14343
|
return data;
|
|
14344
14344
|
});
|
|
14345
|
-
}, function () {
|
|
14345
|
+
}, function (err) {
|
|
14346
|
+
var _err$response, _err$response$data;
|
|
14347
|
+
if ((err === null || err === void 0 ? void 0 : (_err$response = err.response) === null || _err$response === void 0 ? void 0 : (_err$response$data = _err$response.data) === null || _err$response$data === void 0 ? void 0 : _err$response$data.status) === 412) {
|
|
14348
|
+
window.location.replace("/cart");
|
|
14349
|
+
}
|
|
14346
14350
|
return false;
|
|
14347
14351
|
}));
|
|
14348
14352
|
} catch (e) {
|