diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-12-13 02:07:45 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-12-13 02:07:45 +0800 |
commit | 756dc1e95ebbb8ef73ff8f712062997ea3d8c45e (patch) | |
tree | 4dcf8885f7611bd6a1a0e8dd70304da58a4f0cac | |
parent | 68faaaba5f4278d7a1bd5d02f97921fa3c4238f4 (diff) | |
download | dexon-0x-contracts-756dc1e95ebbb8ef73ff8f712062997ea3d8c45e.tar.gz dexon-0x-contracts-756dc1e95ebbb8ef73ff8f712062997ea3d8c45e.tar.zst dexon-0x-contracts-756dc1e95ebbb8ef73ff8f712062997ea3d8c45e.zip |
Linting
-rw-r--r-- | packages/instant/src/components/order_details.tsx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/packages/instant/src/components/order_details.tsx b/packages/instant/src/components/order_details.tsx index ea975a5f7..c069a8bcc 100644 --- a/packages/instant/src/components/order_details.tsx +++ b/packages/instant/src/components/order_details.tsx @@ -27,11 +27,11 @@ export interface OrderDetailsProps { } export class OrderDetails extends React.Component<OrderDetailsProps> { public render(): React.ReactNode { - const showUsdError = this.props.baseCurrency === BaseCurrency.USD && this._hadErrorFetchingUsdPrice(); + const shouldShowUsdError = this.props.baseCurrency === BaseCurrency.USD && this._hadErrorFetchingUsdPrice(); return ( <Container width="100%" flexGrow={1} padding="20px 20px 0px 20px"> <Container marginBottom="10px">{this._renderHeader()}</Container> - {showUsdError ? this._renderErrorFetchingUsdPrice() : this._renderRows()} + {shouldShowUsdError ? this._renderErrorFetchingUsdPrice() : this._renderRows()} </Container> ); } @@ -119,8 +119,7 @@ export class OrderDetails extends React.Component<OrderDetailsProps> { } private _assetAmountLabel(): string { - const { assetName, baseCurrency, ethUsdPrice } = this.props; - + const { assetName, baseCurrency } = this.props; const numTokens = this.props.selectedAssetUnitAmount; // Display as 0 if we have a selected asset |