diff --git a/frontend/src/scripts/index.js b/frontend/src/scripts/index.js index b7cd236..1cedc5c 100644 --- a/frontend/src/scripts/index.js +++ b/frontend/src/scripts/index.js @@ -89,11 +89,9 @@ class Main extends Component { status: "failed", }) } else { - if(api_endpoint==="/api/login"){ - fetch(addr_prefix + "/api/login_status").then(resp => resp.json()).then(json => { - this.setState({login_status: json}) - }) - } + fetch(addr_prefix + "/api/login_status").then(resp => resp.json()).then(json => { + this.setState({login_status: json}) + }) this.setState({ status_text: data.success, status: "success",