meriadec
6 years ago
No known key found for this signature in database
GPG Key ID: 1D2FC2305E2CB399
2 changed files with
3 additions and
3 deletions
-
src/config/urls.js
-
src/reducers/currenciesStatus.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', |
|
|
|
} |
|
|
|
|
|
@ -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) { |
|
|
|