We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a23f741 commit 362be95Copy full SHA for 362be95
src/LoginPage/LoginPage.jsx
@@ -21,6 +21,13 @@ class LoginPage extends React.Component {
21
this.handleSubmit = this.handleSubmit.bind(this);
22
}
23
24
+ componentWillMount() {
25
+ let authState = localStorage.getItem('state');
26
+ if (authState) {
27
+ this.props.dispatch(userActions.loginWithState(authState));
28
+ }
29
30
+
31
handleChange(e) {
32
const { name, value } = e.target;
33
this.setState({ [name]: value });
0 commit comments