From 465d764a0902abd4cdfb9995df74ce3e088fb046 Mon Sep 17 00:00:00 2001 From: meriadec Date: Fri, 9 Nov 2018 17:11:13 +0100 Subject: [PATCH] Update status enpoint --- src/config/urls.js | 3 ++- src/reducers/currenciesStatus.js | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/config/urls.js b/src/config/urls.js index 27e1489f..5c96efe8 100644 --- a/src/config/urls.js +++ b/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', } diff --git a/src/reducers/currenciesStatus.js b/src/reducers/currenciesStatus.js index 47211b28..8c1ec8a4 100644 --- a/src/reducers/currenciesStatus.js +++ b/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) {