Skip to content

Commit 57bb119

Browse files
committed
Some hacks to get around missing user and Masterbar
1 parent fec00f9 commit 57bb119

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

client/boot/app.js

+4
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,8 @@ window.AppBoot = () => {
5353
} else {
5454
user.once( 'change', () => boot( user ) );
5555
}
56+
// @todo Can we get a wp-defined user...?
57+
if ( 'jetpack' === PROJECT_NAME ) {
58+
boot( user );
59+
}
5660
};

client/layout/logged-out.jsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import React from 'react';
55
import classNames from 'classnames';
66
import { connect } from 'react-redux';
7+
import config from 'config';
78

89
/**
910
* Internal dependencies
@@ -27,7 +28,10 @@ const LayoutLoggedOut = ( {
2728

2829
return (
2930
<div className={ classes }>
30-
<MasterbarLoggedOut title={ section.title } sectionName={ section.name } redirectUri={ redirectUri } />
31+
{ ( 'jetpack' === config( 'project' ) )
32+
? null
33+
: <MasterbarLoggedOut title={ section.title } sectionName={ section.name } redirectUri={ redirectUri } />
34+
}
3135
<div id="content" className="layout__content">
3236
<div id="primary" className="layout__primary">
3337
{ primary }

0 commit comments

Comments
 (0)