diff --git a/src/pages/login/login.js b/src/pages/login/login.js index af2d8807..75f06d49 100644 --- a/src/pages/login/login.js +++ b/src/pages/login/login.js @@ -21,7 +21,7 @@ export default class App extends Component { componentWillMount() { const tokenString = this.props.location.search; const authorization = tokenString.substring(tokenString.indexOf("=") + 1); - if (tokenString) { + if (tokenString && tokenString.indexOf("=") > -1) { this.setState({ authorization }); this.onSubmit(); return;