diff options
author | Fred Carlsen <fred@sjelfull.no> | 2018-12-19 01:33:54 +0800 |
---|---|---|
committer | Fred Carlsen <fred@sjelfull.no> | 2018-12-19 01:33:54 +0800 |
commit | 1ae9eedf9f53d2eb23e51d7cf7060891a6d0521a (patch) | |
tree | 49a004445935cd8eb89b8fa7c75dd7a9f9de7b85 /packages/instant/src/redux/async_data.ts | |
parent | cf553f2afe9bae92fda71ae739c982e7bfe97556 (diff) | |
parent | 67df5a433d68a2af1a3a03a8bf431629a534dc97 (diff) | |
download | dexon-sol-tools-1ae9eedf9f53d2eb23e51d7cf7060891a6d0521a.tar.gz dexon-sol-tools-1ae9eedf9f53d2eb23e51d7cf7060891a6d0521a.tar.zst dexon-sol-tools-1ae9eedf9f53d2eb23e51d7cf7060891a6d0521a.zip |
Merge remote-tracking branch 'upstream/development' into feature/website/0x-org
Diffstat (limited to 'packages/instant/src/redux/async_data.ts')
-rw-r--r-- | packages/instant/src/redux/async_data.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/instant/src/redux/async_data.ts b/packages/instant/src/redux/async_data.ts index 932eb93e9..884ab103d 100644 --- a/packages/instant/src/redux/async_data.ts +++ b/packages/instant/src/redux/async_data.ts @@ -4,7 +4,7 @@ import * as _ from 'lodash'; import { Dispatch } from 'redux'; import { BIG_NUMBER_ZERO } from '../constants'; -import { AccountState, ERC20Asset, OrderProcessState, ProviderState, QuoteFetchOrigin } from '../types'; +import { AccountState, BaseCurrency, ERC20Asset, OrderProcessState, ProviderState, QuoteFetchOrigin } from '../types'; import { analytics } from '../util/analytics'; import { assetUtils } from '../util/asset'; import { buyQuoteUpdater } from '../util/buy_quote_updater'; @@ -24,7 +24,9 @@ export const asyncData = { const errorMessage = 'Error fetching ETH/USD price'; errorFlasher.flashNewErrorMessage(dispatch, errorMessage); dispatch(actions.updateEthUsdPrice(BIG_NUMBER_ZERO)); + dispatch(actions.updateBaseCurrency(BaseCurrency.ETH)); errorReporter.report(e); + analytics.trackUsdPriceFailed(); } }, fetchAvailableAssetDatasAndDispatchToStore: async (state: State, dispatch: Dispatch) => { |