|
@@ -142,7 +142,7 @@ export default class Main extends Component<PropsType, StateType> {
|
|
|
path="/register"
|
|
path="/register"
|
|
|
render={() => {
|
|
render={() => {
|
|
|
if (!this.state.isLoggedIn) {
|
|
if (!this.state.isLoggedIn) {
|
|
|
- return <Register authenticate={this.initialize} />;
|
|
|
|
|
|
|
+ return <Register authenticate={this.authenticate} />;
|
|
|
} else {
|
|
} else {
|
|
|
return <Redirect to="/" />;
|
|
return <Redirect to="/" />;
|
|
|
}
|
|
}
|