diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2018-03-22 05:21:19 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2018-03-22 05:21:19 +0800 |
commit | 3916383dd007debc647dc9ac67878cff66f6ea94 (patch) | |
tree | 95fa49b62c48b972cf08678a35fccca81c82cef4 /packages/website | |
parent | a60c8f7d8c05d4d92e16ff73833606989064cb48 (diff) | |
download | dexon-sol-tools-3916383dd007debc647dc9ac67878cff66f6ea94.tar dexon-sol-tools-3916383dd007debc647dc9ac67878cff66f6ea94.tar.gz dexon-sol-tools-3916383dd007debc647dc9ac67878cff66f6ea94.tar.bz2 dexon-sol-tools-3916383dd007debc647dc9ac67878cff66f6ea94.tar.lz dexon-sol-tools-3916383dd007debc647dc9ac67878cff66f6ea94.tar.xz dexon-sol-tools-3916383dd007debc647dc9ac67878cff66f6ea94.tar.zst dexon-sol-tools-3916383dd007debc647dc9ac67878cff66f6ea94.zip |
Other style changes
Diffstat (limited to 'packages/website')
-rw-r--r-- | packages/website/ts/components/wallet.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/website/ts/components/wallet.tsx b/packages/website/ts/components/wallet.tsx index a3ba92ee1..738f18330 100644 --- a/packages/website/ts/components/wallet.tsx +++ b/packages/website/ts/components/wallet.tsx @@ -144,13 +144,13 @@ export class Wallet extends React.Component<WalletProps, WalletState> { // Add placeholder entry for this token to the state, since fetching the // balance/allowance is asynchronous const trackedTokenStateByAddress = this.state.trackedTokenStateByAddress; - for (const tokenAddress of newTokenAddresses) { + _.each(newTokenAddresses, (tokenAddress: string) => { trackedTokenStateByAddress[tokenAddress] = { balance: new BigNumber(0), allowance: new BigNumber(0), isLoaded: false, }; - } + }); this.setState({ trackedTokenStateByAddress, }); @@ -161,7 +161,7 @@ export class Wallet extends React.Component<WalletProps, WalletState> { } public render() { const isReadyToRender = this.props.blockchainIsLoaded && this.props.blockchainErr === BlockchainErrs.NoError; - return <div style={styles.wallet}>{isReadyToRender ? this._renderRows() : <div />}</div>; + return <div style={styles.wallet}>{isReadyToRender && this._renderRows()}</div>; } private _renderRows() { return ( |