diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-11-22 02:21:49 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-11-22 02:21:49 +0800 |
commit | 351b7557b65e4cdef2177585d52021ee5a0f3e42 (patch) | |
tree | 22c09c3e9c1ee8f2aebec71c7e1467a6442d9569 /packages/0x.js/src | |
parent | 4dc1962f9ec2c537b7944246842d934c3aee186d (diff) | |
download | dexon-sol-tools-351b7557b65e4cdef2177585d52021ee5a0f3e42.tar dexon-sol-tools-351b7557b65e4cdef2177585d52021ee5a0f3e42.tar.gz dexon-sol-tools-351b7557b65e4cdef2177585d52021ee5a0f3e42.tar.bz2 dexon-sol-tools-351b7557b65e4cdef2177585d52021ee5a0f3e42.tar.lz dexon-sol-tools-351b7557b65e4cdef2177585d52021ee5a0f3e42.tar.xz dexon-sol-tools-351b7557b65e4cdef2177585d52021ee5a0f3e42.tar.zst dexon-sol-tools-351b7557b65e4cdef2177585d52021ee5a0f3e42.zip |
Fix tests
Diffstat (limited to 'packages/0x.js/src')
-rw-r--r-- | packages/0x.js/src/order_watcher/expiration_watcher.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/0x.js/src/order_watcher/expiration_watcher.ts b/packages/0x.js/src/order_watcher/expiration_watcher.ts index 21b239be1..5aa8b3d17 100644 --- a/packages/0x.js/src/order_watcher/expiration_watcher.ts +++ b/packages/0x.js/src/order_watcher/expiration_watcher.ts @@ -58,7 +58,8 @@ export class ExpirationWatcher { this.orderHashByExpirationRBTree.size !== 0 && this.expiration[this.orderHashByExpirationRBTree.min()].lessThan( currentUnixTimestampMs.plus(this.expirationMarginMs), - ) + ) && + !_.isUndefined(this.orderExpirationCheckingIntervalIdIfExists) ) { const orderHash = this.orderHashByExpirationRBTree.min(); this.orderHashByExpirationRBTree.remove(orderHash); |