Commit c689bc9f authored by Brikou CARRE's avatar Brikou CARRE Committed by Tim Neutkens

Simplify condition in mobx example (#2812)

parent 18e447af
...@@ -21,7 +21,7 @@ class Store { ...@@ -21,7 +21,7 @@ class Store {
} }
export function initStore (isServer, lastUpdate = Date.now()) { export function initStore (isServer, lastUpdate = Date.now()) {
if (isServer && typeof window === 'undefined') { if (isServer) {
return new Store(isServer, lastUpdate) return new Store(isServer, lastUpdate)
} else { } else {
if (store === null) { if (store === null) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment