Use helper function to check for error
This commit is contained in:
		@@ -85,9 +85,7 @@ export class OrderDetails extends React.Component<OrderDetailsProps> {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        const canDisplayCurrency =
 | 
					        const canDisplayCurrency =
 | 
				
			||||||
            secondaryCurrency === BaseCurrency.ETH ||
 | 
					            secondaryCurrency === BaseCurrency.ETH ||
 | 
				
			||||||
            (secondaryCurrency === BaseCurrency.USD &&
 | 
					            (secondaryCurrency === BaseCurrency.USD && this.props.ethUsdPrice && !this._hadErrorFetchingUsdPrice);
 | 
				
			||||||
                this.props.ethUsdPrice &&
 | 
					 | 
				
			||||||
                this.props.ethUsdPrice.greaterThan(BIG_NUMBER_ZERO));
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (this.props.buyQuoteInfo && canDisplayCurrency) {
 | 
					        if (this.props.buyQuoteInfo && canDisplayCurrency) {
 | 
				
			||||||
            return this._displayAmount(secondaryCurrency, this.props.buyQuoteInfo.totalEthAmount);
 | 
					            return this._displayAmount(secondaryCurrency, this.props.buyQuoteInfo.totalEthAmount);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user