aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-12-13 07:46:46 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-12-13 07:46:46 +0800
commit2e7d363f2cf76e383bb8723cfb0f2e3c1e4783d8 (patch)
tree1154bb11588ade9ea82a37195a97dcf0507d4a8a /packages/instant
parent9e5e1f568ba71927cec2255bf779322edb6f7d07 (diff)
downloaddexon-sol-tools-2e7d363f2cf76e383bb8723cfb0f2e3c1e4783d8.tar
dexon-sol-tools-2e7d363f2cf76e383bb8723cfb0f2e3c1e4783d8.tar.gz
dexon-sol-tools-2e7d363f2cf76e383bb8723cfb0f2e3c1e4783d8.tar.bz2
dexon-sol-tools-2e7d363f2cf76e383bb8723cfb0f2e3c1e4783d8.tar.lz
dexon-sol-tools-2e7d363f2cf76e383bb8723cfb0f2e3c1e4783d8.tar.xz
dexon-sol-tools-2e7d363f2cf76e383bb8723cfb0f2e3c1e4783d8.tar.zst
dexon-sol-tools-2e7d363f2cf76e383bb8723cfb0f2e3c1e4783d8.zip
Use helper function to check for error
Diffstat (limited to 'packages/instant')
-rw-r--r--packages/instant/src/components/order_details.tsx4
1 files changed, 1 insertions, 3 deletions
diff --git a/packages/instant/src/components/order_details.tsx b/packages/instant/src/components/order_details.tsx
index 4aa375017..6ce19742f 100644
--- a/packages/instant/src/components/order_details.tsx
+++ b/packages/instant/src/components/order_details.tsx
@@ -85,9 +85,7 @@ export class OrderDetails extends React.Component<OrderDetailsProps> {
const canDisplayCurrency =
secondaryCurrency === BaseCurrency.ETH ||
- (secondaryCurrency === BaseCurrency.USD &&
- this.props.ethUsdPrice &&
- this.props.ethUsdPrice.greaterThan(BIG_NUMBER_ZERO));
+ (secondaryCurrency === BaseCurrency.USD && this.props.ethUsdPrice && !this._hadErrorFetchingUsdPrice);
if (this.props.buyQuoteInfo && canDisplayCurrency) {
return this._displayAmount(secondaryCurrency, this.props.buyQuoteInfo.totalEthAmount);