Browse Source

Update status enpoint

gre-patch-1
meriadec 6 years ago
parent
commit
465d764a09
No known key found for this signature in database GPG Key ID: 1D2FC2305E2CB399
  1. 3
      src/config/urls.js
  2. 3
      src/reducers/currenciesStatus.js

3
src/config/urls.js

@ -38,5 +38,6 @@ export const urls = {
},
// Currencies status
currenciesStatus: 'https://i-dont-know-which-url.ledger.com/currencies-status',
currenciesStatus:
'https://s3-eu-west-1.amazonaws.com/ledger-ledgerlive-resources-prod/public_resources/currencies.json',
}

3
src/reducers/currenciesStatus.js

@ -33,10 +33,9 @@ const handlers = {
const setCurrenciesStatus = createAction('CURRENCIES_STATUS_SET')
export const fetchCurrenciesStatus = () => async (dispatch: *) => {
try {
const baseUrl = process.env.LL_STATUS_API || urls.currenciesStatus
const { data } = await network({
method: 'GET',
url: `${baseUrl}/currencies-status`,
url: process.env.LL_STATUS_ENDPOINT || urls.currenciesStatus,
})
dispatch(setCurrenciesStatus(data))
} catch (err) {

Loading…
Cancel
Save