From 320e3c89e02e9c46950b6d65a684c0df17084f40 Mon Sep 17 00:00:00 2001 From: Mael Date: Tue, 15 Jan 2019 20:14:06 +0100 Subject: [PATCH] :bug: Exception --- source/Provider.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/Provider.js b/source/Provider.js index 161f353bd..d9393a08c 100644 --- a/source/Provider.js +++ b/source/Provider.js @@ -53,7 +53,8 @@ export default class Layout extends PureComponent { ) if (this.props.language) { i18next.changeLanguage(this.props.language) - this.props.initialStore.lang = this.props.language + if (this.props.initialStore) + this.props.initialStore.lang = this.props.language } this.store = createStore( enableBatching(reducers),