Browse Source

Merge pull request #78 from porter-dev/staging

Staging
abelanger5 5 năm trước cách đây
mục cha
commit
1c48f088c0
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      dashboard/src/main/Login.tsx

+ 1 - 1
dashboard/src/main/Login.tsx

@@ -32,7 +32,7 @@ export default class Login extends Component<PropsType, StateType> {
   componentDidMount() {
   componentDidMount() {
     let urlParams = new URLSearchParams(window.location.search);
     let urlParams = new URLSearchParams(window.location.search);
     let emailFromCLI = urlParams.get('email');
     let emailFromCLI = urlParams.get('email');
-    // emailFromCLI ? this.setState({email: emailFromCLI}) :
+    emailFromCLI ? this.setState({email: emailFromCLI}) :
     document.addEventListener("keydown", this.handleKeyDown);
     document.addEventListener("keydown", this.handleKeyDown);
   }
   }