Fix reference to window.identity

This commit is contained in:
Mathias Biilmann Christensen 2017-09-05 19:30:03 -07:00
parent 1a25b2c6b3
commit 0b793cbc65

View File

@ -8,7 +8,7 @@ import styles from "./AuthenticationPage.css";
export default class AuthenticationPage extends React.Component {
constructor(props) {
super(props);
this.identity = window.identity;
this.identity = window.netlifyIdentity;
this.state = {user: this.identity && this.identity.gotrue && this.identity.gotrue.currentUser()};
}