Skip to content

Commit

Permalink
client: Fix style SSR errors
Browse files Browse the repository at this point in the history
  • Loading branch information
goto-bus-stop committed Apr 2, 2017
1 parent 61a7f91 commit 44a7c81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/pages/_document.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { manager } from '../components/SSR'
export default class SSRDocument extends Document {
static getInitialProps ({ renderPage }) {
const page = renderPage();
const jss = manager.sheetsToString();
const jss = manager && manager.sheetsToString();
return {
...page,
jss,
Expand All @@ -19,7 +19,7 @@ export default class SSRDocument extends Document {
<html>
<Head>
<title>üWave</title>
<style id="ssr">{this.props.jss}</style>
<style id="ssr">{this.props.jss || ''}</style>
<style>{this.props.styledJsx}</style>
</Head>
<body>
Expand Down

0 comments on commit 44a7c81

Please sign in to comment.