From d0abc60176dba3116cb3986d298ab5164c1fe49c Mon Sep 17 00:00:00 2001 From: Brandon Millman Date: Mon, 21 May 2018 21:41:03 -0700 Subject: Add missing key --- packages/website/ts/components/wallet/wallet.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'packages/website/ts') diff --git a/packages/website/ts/components/wallet/wallet.tsx b/packages/website/ts/components/wallet/wallet.tsx index 09d094a16..113f3c864 100644 --- a/packages/website/ts/components/wallet/wallet.tsx +++ b/packages/website/ts/components/wallet/wallet.tsx @@ -340,7 +340,8 @@ export class Wallet extends React.Component { const style = isInWrappedEtherState ? { ...walletItemStyles.focusedItem, ...styles.paddedItem } : { ...styles.tokenItem, ...styles.borderedItem, ...styles.paddedItem }; - return this._renderBalanceRow(icon, primaryText, secondaryText, accessoryItemConfig); + const key = ETHER_ITEM_KEY; + return this._renderBalanceRow(key, icon, primaryText, secondaryText, accessoryItemConfig); } private _renderTokenRows(): React.ReactNode { const trackedTokens = this.props.trackedTokens; @@ -369,9 +370,11 @@ export class Wallet extends React.Component { tokenState, }, }; - return this._renderBalanceRow(icon, primaryText, secondaryText, accessoryItemConfig); + const key = token.address; + return this._renderBalanceRow(key, icon, primaryText, secondaryText, accessoryItemConfig); } private _renderBalanceRow( + key: string, icon: React.ReactNode, primaryText: React.ReactNode, secondaryText: React.ReactNode, @@ -385,7 +388,7 @@ export class Wallet extends React.Component { : { ...styles.tokenItem, ...styles.borderedItem, ...styles.paddedItem }; const etherToken = this._getEthToken(); return ( -
+
{icon}
-- cgit