Small improvements

This commit is contained in:
Fabio Berger
2018-01-29 13:57:05 +01:00
parent 6c1409b00d
commit 8ccdd54974

View File

@@ -120,7 +120,7 @@ export class Web3Wrapper {
} }
// Check for user ether balance changes // Check for user ether balance changes
if (userAddressIfExists !== '') { if (!_.isEmpty(userAddressIfExists)) {
await this._updateUserEtherBalanceAsync(userAddressIfExists); await this._updateUserEtherBalanceAsync(userAddressIfExists);
} }
} else { } else {
@@ -133,7 +133,7 @@ export class Web3Wrapper {
}, },
5000, 5000,
(err: Error) => { (err: Error) => {
utils.consoleLog(`Watching network and balances failed: ${err}, ${err.stack}`); utils.consoleLog(`Watching network and balances failed: ${err.stack}`);
this._stopEmittingNetworkConnectionAndUserBalanceStateAsync(); this._stopEmittingNetworkConnectionAndUserBalanceStateAsync();
}, },
); );