From 51018abe8826bb11ffaec9bffa066274d158ce26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Renaudeau?= Date: Mon, 14 Jan 2019 13:58:15 +0100 Subject: [PATCH] Should fixes LL-828 --- src/reducers/currenciesStatus.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/reducers/currenciesStatus.js b/src/reducers/currenciesStatus.js index 3d48f264..3e98562a 100644 --- a/src/reducers/currenciesStatus.js +++ b/src/reducers/currenciesStatus.js @@ -37,7 +37,9 @@ export const fetchCurrenciesStatus = () => async (dispatch: *) => { method: 'GET', url: process.env.LL_STATUS_ENDPOINT || urls.currenciesStatus, }) - dispatch(setCurrenciesStatus(data)) + if (Array.isArray(data)) { + dispatch(setCurrenciesStatus(data)) + } } catch (err) { logger.error(err) }