Skip to content

Commit

Permalink
successfully able to edit profiles in route edit-profile.
Browse files Browse the repository at this point in the history
  • Loading branch information
ganesh-deshmukh committed Oct 26, 2018
1 parent 9abc790 commit 60bf7de
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/edit-profile/EditProfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class CreateProfile extends Component {
const profile = nextProps.profile.profile;

// skills are stored as array in db, then make them as csv.
const skillCSV = profile.skills.join(","); // it will join all elements by comma.
const skillsCSV = profile.skills.join(","); // it will join all elements by comma.

// check if profile field doesnt exist, then make it empty string
profile.company = !isEmpty(profile.company) ? profile.company : "";
Expand Down
8 changes: 7 additions & 1 deletion frontend/src/components/layout/Navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,15 @@ class Navbar extends Component {

const authLinks = (
<ul className="navbar-nav ml-auto">
<li className="nav-item">
<Link className="nav-link" to="/register">
Dashboard
</Link>
</li>

<li className="nav-item">
<a
className="nav-link"
className="nav-link" //eslint-disable-next-line
href=""
onClick={this.onLogoutClick.bind(this)}
>
Expand Down

0 comments on commit 60bf7de

Please sign in to comment.