itizawa пре 6 година
родитељ
комит
1d18afcc69
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      src/client/js/components/LoginForm.jsx

+ 2 - 1
src/client/js/components/LoginForm.jsx

@@ -42,12 +42,13 @@ class LoginForm extends React.Component {
       saml: true,
       basic: true,
     };
+  }
 
+  componentDidMount() {
     const { hash } = window.location;
     if (hash === '#register') {
       this.setState({ isRegistering: true });
     }
-
   }
 
   onClickSwitchFormBtn() {