diff options
author | Francesco Agosti <francesco.agosti93@gmail.com> | 2018-07-11 01:26:40 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-11 01:26:40 +0800 |
commit | fb9e14a229575433e42b7df0dfab5b03371647ab (patch) | |
tree | 427171d39a5bb5805a587fb9e46106455abc62a4 /packages/website/ts/blockchain.ts | |
parent | e817cd7d43467678f3dec7c020f8f0348bfc137b (diff) | |
parent | 5dfed8cd00386c185f0397fda329f7ab7bc9401f (diff) | |
download | dexon-sol-tools-fb9e14a229575433e42b7df0dfab5b03371647ab.tar dexon-sol-tools-fb9e14a229575433e42b7df0dfab5b03371647ab.tar.gz dexon-sol-tools-fb9e14a229575433e42b7df0dfab5b03371647ab.tar.bz2 dexon-sol-tools-fb9e14a229575433e42b7df0dfab5b03371647ab.tar.lz dexon-sol-tools-fb9e14a229575433e42b7df0dfab5b03371647ab.tar.xz dexon-sol-tools-fb9e14a229575433e42b7df0dfab5b03371647ab.tar.zst dexon-sol-tools-fb9e14a229575433e42b7df0dfab5b03371647ab.zip |
Merge pull request #845 from 0xProject/bug/website/portal-soft-launch-fixes
Enable sourceMaps on Rollbar and fix some small issues
Diffstat (limited to 'packages/website/ts/blockchain.ts')
-rw-r--r-- | packages/website/ts/blockchain.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/website/ts/blockchain.ts b/packages/website/ts/blockchain.ts index fde134b18..5476fcf37 100644 --- a/packages/website/ts/blockchain.ts +++ b/packages/website/ts/blockchain.ts @@ -537,7 +537,9 @@ export class Blockchain { } public destroy(): void { this._blockchainWatcher.destroy(); - this._injectedProviderObservable.unsubscribe(this._injectedProviderUpdateHandler); + if (this._injectedProviderObservable) { + this._injectedProviderObservable.unsubscribe(this._injectedProviderUpdateHandler); + } this._stopWatchingExchangeLogFillEvents(); this._stopWatchingGasPrice(); } |