Functionally complete full registration workflow

This commit is contained in:
Alexander Wong
2017-09-04 00:30:18 -06:00
parent 561664a701
commit f0c30f1023
18 changed files with 699 additions and 24 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ import { connect } from "react-redux";
import { Link } from "react-router-dom";
import { Dropdown, Menu } from "semantic-ui-react";
import { sendGetSelfUserRequest } from "../actions/user/saga.actions";
import { getSelfUserRequest } from "../actions/user/saga.actions";
import { sendLogoutRequest } from "../actions/auth/saga.actions";
class Navbar extends Component {
@@ -11,7 +11,7 @@ class Navbar extends Component {
const { dispatch, userToken, selfUser } = this.props;
// If the user token exists and the self user object isn't loaded, dispatch
if (userToken && Object.keys(selfUser).length === 0) {
dispatch(sendGetSelfUserRequest());
dispatch(getSelfUserRequest());
}
}