1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-27 18:58:08 +00:00

eslint ./src/services

This commit is contained in:
Szymon Lesisz 2018-09-23 08:31:33 +02:00
parent 1ea6d0be4c
commit de7e8914cb

View File

@ -13,7 +13,6 @@ import type {
AsyncAction,
GetState,
} from 'flowtype';
import type { Config, FiatValueTicker } from 'reducers/LocalStorageReducer';
export const RATE_UPDATE: 'rate__update' = 'rate__update';
@ -24,11 +23,11 @@ export type FiatRateAction = {
}
const loadRateAction = (): AsyncAction => async (dispatch: Dispatch, getState: GetState): Promise<void> => {
const config: ?Config = getState().localStorage.config;
const { config } = getState().localStorage;
if (!config) return;
try {
config.fiatValueTickers.forEach(async (ticker: FiatValueTicker) => {
config.fiatValueTickers.forEach(async (ticker) => {
// const rate: ?Array<any> = await JSONRequest(`${ticker.url}?convert=USD`, 'json');
const rate: ?Array<any> = await httpRequest(`${ticker.url}?convert=USD`, 'json');
if (rate) {