itizawa 6 лет назад
Родитель
Сommit
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,
       saml: true,
       basic: true,
       basic: true,
     };
     };
+  }
 
 
+  componentDidMount() {
     const { hash } = window.location;
     const { hash } = window.location;
     if (hash === '#register') {
     if (hash === '#register') {
       this.setState({ isRegistering: true });
       this.setState({ isRegistering: true });
     }
     }
-
   }
   }
 
 
   onClickSwitchFormBtn() {
   onClickSwitchFormBtn() {