aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-11-18 07:25:58 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-11-18 07:25:58 +0800
commite755ed927cef8352900187b5487881a3fa4847f1 (patch)
treeae175f01d3f1daa6a691e1f6d3fee72471512104 /packages
parentd3e03744cdbc12bd1956fd5d921fc2331e4ee5cf (diff)
downloaddexon-sol-tools-e755ed927cef8352900187b5487881a3fa4847f1.tar
dexon-sol-tools-e755ed927cef8352900187b5487881a3fa4847f1.tar.gz
dexon-sol-tools-e755ed927cef8352900187b5487881a3fa4847f1.tar.bz2
dexon-sol-tools-e755ed927cef8352900187b5487881a3fa4847f1.tar.lz
dexon-sol-tools-e755ed927cef8352900187b5487881a3fa4847f1.tar.xz
dexon-sol-tools-e755ed927cef8352900187b5487881a3fa4847f1.tar.zst
dexon-sol-tools-e755ed927cef8352900187b5487881a3fa4847f1.zip
Remove order on expiration
Diffstat (limited to 'packages')
-rw-r--r--packages/0x.js/src/order_watcher/order_state_watcher.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/0x.js/src/order_watcher/order_state_watcher.ts b/packages/0x.js/src/order_watcher/order_state_watcher.ts
index f21ad0bbe..bc61e415c 100644
--- a/packages/0x.js/src/order_watcher/order_state_watcher.ts
+++ b/packages/0x.js/src/order_watcher/order_state_watcher.ts
@@ -142,6 +142,7 @@ export class OrderStateWatcher {
};
if (!_.isUndefined(this._orderByOrderHash[orderHash])) {
// We need this check because we never remove the orders from expiration watcher
+ this.removeOrder(orderHash);
(this._callbackIfExistsAsync as OnOrderStateChangeCallback)(orderState);
}
}