Browse Source

Should fixes LL-828

gre-patch-1
Gaëtan Renaudeau 6 years ago
parent
commit
51018abe88
No known key found for this signature in database GPG Key ID: 7B66B85F042E5451
  1. 4
      src/reducers/currenciesStatus.js

4
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)
}

Loading…
Cancel
Save