🐛 répare la page blanche au chargement

pull/510/head
Johan Girod 2019-04-02 17:03:40 +02:00
parent cf3b220124
commit ccf34fb2d7
2 changed files with 3 additions and 2 deletions

View File

@ -29,7 +29,8 @@ const Montant = ({
<span className={'montant ' + className} style={style}>
{value === 0 || Number.isNaN(value)
? '—'
: NumberFormat(language, {
: // // $FlowFixMe
NumberFormat(language, {
style: type,
currency: 'EUR',
maximumFractionDigits: numFractionDigit,

View File

@ -65,7 +65,7 @@ class InFranceRoute extends Component {
sitePaths={paths}
reduxMiddlewares={middlewares}
onStoreCreated={persistEverything()}
initialStore={retrievePersistedState()}>
initialStore={retrievePersistedState() || {}}>
<TrackPageView />
<div id="content">
<RouterSwitch />