aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/blockchain.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-11-24 03:56:16 +0800
committerFabio Berger <me@fabioberger.com>2017-11-24 03:56:16 +0800
commitbcc5d635169e3202a5c46cb2995ff51c8482a36c (patch)
treec3ecb81adacc9de75fbaf49bbbff0b54b2689ee9 /packages/website/ts/blockchain.ts
parentc66fc634529962bc06a9cfa60633e1bc3c538153 (diff)
downloaddexon-0x-contracts-bcc5d635169e3202a5c46cb2995ff51c8482a36c.tar.gz
dexon-0x-contracts-bcc5d635169e3202a5c46cb2995ff51c8482a36c.tar.zst
dexon-0x-contracts-bcc5d635169e3202a5c46cb2995ff51c8482a36c.zip
Fix bug
Diffstat (limited to 'packages/website/ts/blockchain.ts')
-rw-r--r--packages/website/ts/blockchain.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/website/ts/blockchain.ts b/packages/website/ts/blockchain.ts
index 3a1b62164..9be764917 100644
--- a/packages/website/ts/blockchain.ts
+++ b/packages/website/ts/blockchain.ts
@@ -496,7 +496,7 @@ export class Blockchain {
this.stopWatchingExchangeLogFillEventsAsync(); // fire and forget
return;
} else {
- if (this.doesLogEventInvolveUser(decodedLogEvent)) {
+ if (!this.doesLogEventInvolveUser(decodedLogEvent)) {
return; // We aren't interested in the fill event
}
this.updateLatestFillsBlockIfNeeded(decodedLogEvent.blockNumber);
@@ -519,7 +519,7 @@ export class Blockchain {
ExchangeEvents.LogFill, subscriptionOpts, indexFilterValues,
);
for (const decodedLog of decodedLogs) {
- if (this.doesLogEventInvolveUser(decodedLog)) {
+ if (!this.doesLogEventInvolveUser(decodedLog)) {
continue; // We aren't interested in the fill event
}
this.updateLatestFillsBlockIfNeeded(decodedLog.blockNumber);