Skip to content

Commit

Permalink
Server Side Rendering: Fix
Browse files Browse the repository at this point in the history
SSR was broken by #5081, where I flipped the check for logged-out to logged-in:
https://github.com/Automattic/wp-calypso/pull/5081/files#diff-2ff5c9f67cfab8b6325e63706e3f4970R18 misses the negation that was previously present at
https://github.com/Automattic/wp-calypso/pull/5081/files#diff-a3600f12cca835b2ea80190a8243a8cbL26.
This PR adds it back.
  • Loading branch information
ockham committed Aug 22, 2016
1 parent 32ebfb6 commit f7d55ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/controller/shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function makeLayoutMiddleware( LayoutComponent ) {
const { store, primary, secondary, tertiary } = context;

// On server, only render LoggedOutLayout when logged-out.
if ( ! context.isServerSide || getCurrentUser( context.store.getState() ) ) {
if ( ! context.isServerSide || ! getCurrentUser( context.store.getState() ) ) {
context.layout = (
<LayoutComponent store={ store }
primary={ primary }
Expand Down

0 comments on commit f7d55ac

Please sign in to comment.