Skip to content

Commit

Permalink
Some hacks to get around missing user and Masterbar
Browse files Browse the repository at this point in the history
  • Loading branch information
ryelle committed Jun 12, 2017
1 parent fec00f9 commit 57bb119
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions client/boot/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,8 @@ window.AppBoot = () => {
} else {
user.once( 'change', () => boot( user ) );
}
// @todo Can we get a wp-defined user...?
if ( 'jetpack' === PROJECT_NAME ) {
boot( user );
}
};
6 changes: 5 additions & 1 deletion client/layout/logged-out.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import React from 'react';
import classNames from 'classnames';
import { connect } from 'react-redux';
import config from 'config';

/**
* Internal dependencies
Expand All @@ -27,7 +28,10 @@ const LayoutLoggedOut = ( {

return (
<div className={ classes }>
<MasterbarLoggedOut title={ section.title } sectionName={ section.name } redirectUri={ redirectUri } />
{ ( 'jetpack' === config( 'project' ) )
? null
: <MasterbarLoggedOut title={ section.title } sectionName={ section.name } redirectUri={ redirectUri } />
}
<div id="content" className="layout__content">
<div id="primary" className="layout__primary">
{ primary }
Expand Down

0 comments on commit 57bb119

Please sign in to comment.