Skip to content

Commit d335d98

Browse files
solkazdane-johnson
authored andcommitted
Fix issue with reading organizations from cookies (#444)
1 parent 92f447e commit d335d98

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/containers/AppBody.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export class AppBody extends Component {
5656
dispatch(switchOrg(savedUsername));
5757

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

6262
if (!username && !snippetKey) {

src/containers/CodesplainAppBar.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ export class CodesplainAppBar extends Component {
7777
const { router } = this.props;
7878
cookie.remove('token', { path: '/' });
7979
cookie.remove('username', { path: '/' });
80+
cookie.remove('orgs', { path: '/' });
8081
cookie.remove('userAvatarURL', { path: '/' });
8182
this.setState({ isLoggedIn: false });
8283
router.push('/');

0 commit comments

Comments
 (0)