Browse Source

Merge pull request #1744 from gre/LL-828

Should fixes LL-828
gre-patch-1
Gaëtan Renaudeau 6 years ago
committed by GitHub
parent
commit
e8d326ec8e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  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