diff --git a/src/common/utils/apiLooper.ts b/src/common/utils/apiLooper.ts index ae29294475..182e26fe91 100644 --- a/src/common/utils/apiLooper.ts +++ b/src/common/utils/apiLooper.ts @@ -7,8 +7,6 @@ const apiQuery = {} const apiQueryTimers = {} const apiQueryTicks = 10 -const apis = {} - const apiQueryTimer = (queryName) => { if (apiQuery[queryName].length) { const queryChunk = apiQuery[queryName].shift() @@ -155,7 +153,6 @@ const apiLooper = (method, api, endpoint, options) => { .then((answer) => { if (options && options.checkStatus instanceof Function) { if (!options.checkStatus(answer)) { - console.error(`Endpoint ${currentEndpoint.url} - checkStatus failed (may be down). Switch next`) if (switchNext(api)) { doRequest() } else { @@ -185,11 +182,9 @@ const apiLooper = (method, api, endpoint, options) => { } } if (ignoreErrors) { - console.log('Ignore error ^') resolve(answer) return } - console.error(`Endpoint ${currentEndpoint.url} may be offline. Switch next`) if (switchNext(apiName)) { doRequest() } else { diff --git a/src/front/client/index.html b/src/front/client/index.html index 01bcf9206a..16dc23136e 100644 --- a/src/front/client/index.html +++ b/src/front/client/index.html @@ -5,9 +5,10 @@
- {new BigNumber(amount).isGreaterThan(0) && criptoCurrencyHaveInfoPrice && (
+ {new BigNumber(amount).isGreaterThan(0) && cryptoCurrencyHaveInfoPrice && (
{new BigNumber(balance).toNumber() === 0 ||
@@ -2038,7 +2038,6 @@ class Exchange extends PureComponent