From ca15db7aed8a0bab0004ba9f22c0b96325901b21 Mon Sep 17 00:00:00 2001 From: dragon1211 Date: Wed, 2 Feb 2022 13:45:20 -0800 Subject: [PATCH] . --- backend/public/js/index.js | 1 + backend/resources/js/component/alert_state_msg.jsx | 1 + 2 files changed, 2 insertions(+) diff --git a/backend/public/js/index.js b/backend/public/js/index.js index 4a5a594e..0a8f1aa2 100644 --- a/backend/public/js/index.js +++ b/backend/public/js/index.js @@ -34961,6 +34961,7 @@ function AlertStateMessage() { _400error = _useState4[0], set400Error = _useState4[1]; + var acc_type = pathname.split('/')[1]; (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () { if (state) { if (pathname.search('/register/error') > 0) { diff --git a/backend/resources/js/component/alert_state_msg.jsx b/backend/resources/js/component/alert_state_msg.jsx index 76f2a9b1..551bd339 100644 --- a/backend/resources/js/component/alert_state_msg.jsx +++ b/backend/resources/js/component/alert_state_msg.jsx @@ -7,6 +7,7 @@ export default function AlertStateMessage() { const navigator = useNavigate(); const [_success, setSuccess] = useState(''); const [_400error, set400Error] = useState(''); + const acc_type = pathname.split('/')[1]; useEffect(() => { if(state){