diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-12-13 01:54:06 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-12-13 01:54:06 +0800 |
commit | 0690e68a833e0ca75d31614621aa0278009cc10c (patch) | |
tree | 16fa90278f8d9ed162eb6a1b1ef51b9876583a10 /packages/instant/src | |
parent | fb99b5ce9d3639e1584214828216879f99dfa020 (diff) | |
download | dexon-sol-tools-0690e68a833e0ca75d31614621aa0278009cc10c.tar dexon-sol-tools-0690e68a833e0ca75d31614621aa0278009cc10c.tar.gz dexon-sol-tools-0690e68a833e0ca75d31614621aa0278009cc10c.tar.bz2 dexon-sol-tools-0690e68a833e0ca75d31614621aa0278009cc10c.tar.lz dexon-sol-tools-0690e68a833e0ca75d31614621aa0278009cc10c.tar.xz dexon-sol-tools-0690e68a833e0ca75d31614621aa0278009cc10c.tar.zst dexon-sol-tools-0690e68a833e0ca75d31614621aa0278009cc10c.zip |
Change base currency to ETH if we can't get USD price
Diffstat (limited to 'packages/instant/src')
-rw-r--r-- | packages/instant/src/redux/async_data.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/instant/src/redux/async_data.ts b/packages/instant/src/redux/async_data.ts index c67b222d1..8ef95add4 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,6 +24,7 @@ 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); } }, |