File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff 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 ) {
Original file line number Diff line number Diff 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 ( '/' ) ;
You can’t perform that action at this time.
0 commit comments