From 549c6afa0af15cb19249ce8cdbad92b09ae231f6 Mon Sep 17 00:00:00 2001 From: Brandon Millman Date: Tue, 19 Jun 2018 13:55:29 -0700 Subject: Move some layout logic out of the Identicon component --- packages/website/ts/components/generate_order/asset_picker.tsx | 4 ++-- packages/website/ts/components/ui/identicon.tsx | 2 +- packages/website/ts/components/wallet/wallet.tsx | 3 +++ 3 files changed, 6 insertions(+), 3 deletions(-) (limited to 'packages') diff --git a/packages/website/ts/components/generate_order/asset_picker.tsx b/packages/website/ts/components/generate_order/asset_picker.tsx index d7cc554c4..b43ac1f2e 100644 --- a/packages/website/ts/components/generate_order/asset_picker.tsx +++ b/packages/website/ts/components/generate_order/asset_picker.tsx @@ -151,12 +151,12 @@ export class AssetPicker extends React.Component -
+
{token.name}
diff --git a/packages/website/ts/components/ui/identicon.tsx b/packages/website/ts/components/ui/identicon.tsx index 30df995c8..cc1655962 100644 --- a/packages/website/ts/components/ui/identicon.tsx +++ b/packages/website/ts/components/ui/identicon.tsx @@ -23,7 +23,7 @@ export class Identicon extends React.Component { const radius = diameter / 2; return (
{ } private _renderTokenRow(token: Token, _index: number): React.ReactNode { const tokenState = this.props.trackedTokenStateByAddress[token.address]; + if (_.isUndefined(tokenState)) { + return null; + } const tokenLink = sharedUtils.getEtherScanLinkIfExists( token.address, this.props.networkId, -- cgit v1.2.3