diff options
author | Fabio Berger <me@fabioberger.com> | 2017-12-06 12:15:23 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-12-06 12:17:48 +0800 |
commit | da678ba018a308f74c7bc71e2ed9d153c078ed37 (patch) | |
tree | 4d22298c8280c309025963d070026f80d5d8c484 /packages/website | |
parent | 86ed1b45544625387123641e76879381cc6397a1 (diff) | |
download | dexon-sol-tools-da678ba018a308f74c7bc71e2ed9d153c078ed37.tar.gz dexon-sol-tools-da678ba018a308f74c7bc71e2ed9d153c078ed37.tar.zst dexon-sol-tools-da678ba018a308f74c7bc71e2ed9d153c078ed37.zip |
Move declaration into proper conditional block
Diffstat (limited to 'packages/website')
-rw-r--r-- | packages/website/ts/blockchain.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/website/ts/blockchain.ts b/packages/website/ts/blockchain.ts index e71f61ead..31d725a41 100644 --- a/packages/website/ts/blockchain.ts +++ b/packages/website/ts/blockchain.ts @@ -504,7 +504,6 @@ export class Blockchain { const subscriptionId = this.zeroEx.exchange.subscribe( ExchangeEvents.LogFill, indexFilterValues, async (err: Error, decodedLogEvent: DecodedLogEvent<LogFillContractEventArgs>) => { - const decodedLog = decodedLogEvent.log; if (err) { // Note: it's not entirely clear from the documentation which // errors will be thrown by `watch`. For now, let's log the error @@ -515,6 +514,7 @@ export class Blockchain { this.stopWatchingExchangeLogFillEventsAsync(); // fire and forget return; } else { + const decodedLog = decodedLogEvent.log; if (!this.doesLogEventInvolveUser(decodedLog)) { return; // We aren't interested in the fill event } |