aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-12-13 02:07:45 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-12-13 02:07:45 +0800
commit756dc1e95ebbb8ef73ff8f712062997ea3d8c45e (patch)
tree4dcf8885f7611bd6a1a0e8dd70304da58a4f0cac /packages/instant/src
parent68faaaba5f4278d7a1bd5d02f97921fa3c4238f4 (diff)
downloaddexon-sol-tools-756dc1e95ebbb8ef73ff8f712062997ea3d8c45e.tar
dexon-sol-tools-756dc1e95ebbb8ef73ff8f712062997ea3d8c45e.tar.gz
dexon-sol-tools-756dc1e95ebbb8ef73ff8f712062997ea3d8c45e.tar.bz2
dexon-sol-tools-756dc1e95ebbb8ef73ff8f712062997ea3d8c45e.tar.lz
dexon-sol-tools-756dc1e95ebbb8ef73ff8f712062997ea3d8c45e.tar.xz
dexon-sol-tools-756dc1e95ebbb8ef73ff8f712062997ea3d8c45e.tar.zst
dexon-sol-tools-756dc1e95ebbb8ef73ff8f712062997ea3d8c45e.zip
Linting
Diffstat (limited to 'packages/instant/src')
-rw-r--r--packages/instant/src/components/order_details.tsx7
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