diff options
author | Fabio Berger <me@fabioberger.com> | 2018-01-29 20:57:05 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-01-29 20:57:05 +0800 |
commit | 8ccdd54974a43dc44d3aa7475442c7e2a1a6441a (patch) | |
tree | 18f65c73e1460d9df2000c6ad7dc197ff3f9839f | |
parent | 6c1409b00db68dcd88b42806efef1e91bb1abed2 (diff) | |
download | dexon-0x-contracts-8ccdd54974a43dc44d3aa7475442c7e2a1a6441a.tar dexon-0x-contracts-8ccdd54974a43dc44d3aa7475442c7e2a1a6441a.tar.gz dexon-0x-contracts-8ccdd54974a43dc44d3aa7475442c7e2a1a6441a.tar.bz2 dexon-0x-contracts-8ccdd54974a43dc44d3aa7475442c7e2a1a6441a.tar.lz dexon-0x-contracts-8ccdd54974a43dc44d3aa7475442c7e2a1a6441a.tar.xz dexon-0x-contracts-8ccdd54974a43dc44d3aa7475442c7e2a1a6441a.tar.zst dexon-0x-contracts-8ccdd54974a43dc44d3aa7475442c7e2a1a6441a.zip |
Small improvements
-rw-r--r-- | packages/website/ts/web3_wrapper.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/website/ts/web3_wrapper.ts b/packages/website/ts/web3_wrapper.ts index d3e929917..00b18a266 100644 --- a/packages/website/ts/web3_wrapper.ts +++ b/packages/website/ts/web3_wrapper.ts @@ -120,7 +120,7 @@ export class Web3Wrapper { } // Check for user ether balance changes - if (userAddressIfExists !== '') { + if (!_.isEmpty(userAddressIfExists)) { await this._updateUserEtherBalanceAsync(userAddressIfExists); } } else { @@ -133,7 +133,7 @@ export class Web3Wrapper { }, 5000, (err: Error) => { - utils.consoleLog(`Watching network and balances failed: ${err}, ${err.stack}`); + utils.consoleLog(`Watching network and balances failed: ${err.stack}`); this._stopEmittingNetworkConnectionAndUserBalanceStateAsync(); }, ); |