diff --git a/backend/public/js/index.js b/backend/public/js/index.js index 9c351881..fc898bd9 100644 --- a/backend/public/js/index.js +++ b/backend/public/js/index.js @@ -30721,7 +30721,7 @@ var ChildForgotPassword = function ChildForgotPassword() { }), _success && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)(_component_alert__WEBPACK_IMPORTED_MODULE_1__["default"], { type: "success", hide: function hide() { - return setSucess(''); + return setSuccess(''); }, children: [" ", _success] })] @@ -31674,26 +31674,7 @@ var ChildSignUpTemporary = function ChildSignUpTemporary() { var isMountedRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(true); (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () { isMountedRef.current = false; - setLoaded(false); - if (document.getElementById('father_token')) { - var father_id = document.getElementById('father_token').value; - axios.get('/api/children/father/relations/check', { - params: { - father_id: father_id - } - }).then(function (response) { - if (isMountedRef.current) return; - - if (response.data.status_code == 200) { - setLoaded(true); - } else { - navigator('/c-account/login'); - } - }); - } else { - setLoaded(true); - } - + setLoaded(true); return function () { isMountedRef.current = true; };