Skip to content

Commit

Permalink
Fix issue with reading organizations from cookies (#444)
Browse files Browse the repository at this point in the history
  • Loading branch information
solkaz authored and dane-johnson committed May 10, 2017
1 parent 92f447e commit d335d98
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/containers/AppBody.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export class AppBody extends Component {
dispatch(switchOrg(savedUsername));

// If they are a member of any organizations, add to list as well
cookie.load('orgs').split().forEach(org => dispatch(addOrg(org)));
cookie.load('orgs').split(' ').forEach(org => dispatch(addOrg(org)));
}

if (!username && !snippetKey) {
Expand Down
1 change: 1 addition & 0 deletions src/containers/CodesplainAppBar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export class CodesplainAppBar extends Component {
const { router } = this.props;
cookie.remove('token', { path: '/' });
cookie.remove('username', { path: '/' });
cookie.remove('orgs', { path: '/' });
cookie.remove('userAvatarURL', { path: '/' });
this.setState({ isLoggedIn: false });
router.push('/');
Expand Down

0 comments on commit d335d98

Please sign in to comment.