From ccf34fb2d7d5712dc9aaccffab3d639b4bcda416 Mon Sep 17 00:00:00 2001 From: Johan Girod Date: Tue, 2 Apr 2019 17:03:40 +0200 Subject: [PATCH] =?UTF-8?q?:bug:=20r=C3=A9pare=20la=20page=20blanche=20au?= =?UTF-8?q?=20chargement?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/components/ui/Montant.js | 3 ++- source/sites/mycompanyinfrance.fr/App.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/source/components/ui/Montant.js b/source/components/ui/Montant.js index ef6132f72..c05c3b35d 100644 --- a/source/components/ui/Montant.js +++ b/source/components/ui/Montant.js @@ -29,7 +29,8 @@ const Montant = ({ {value === 0 || Number.isNaN(value) ? '—' - : NumberFormat(language, { + : // // $FlowFixMe + NumberFormat(language, { style: type, currency: 'EUR', maximumFractionDigits: numFractionDigit, diff --git a/source/sites/mycompanyinfrance.fr/App.js b/source/sites/mycompanyinfrance.fr/App.js index 53f3cffbb..0d27393d8 100644 --- a/source/sites/mycompanyinfrance.fr/App.js +++ b/source/sites/mycompanyinfrance.fr/App.js @@ -65,7 +65,7 @@ class InFranceRoute extends Component { sitePaths={paths} reduxMiddlewares={middlewares} onStoreCreated={persistEverything()} - initialStore={retrievePersistedState()}> + initialStore={retrievePersistedState() || {}}>