diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-11-14 02:27:44 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-11-14 02:27:44 +0800 |
commit | 11f0bebd7faff1a8ff0636e6f1a7d79b7db26104 (patch) | |
tree | adc75f0f9d81aa07bce1b667bf2a0e089f7ce627 /packages/order-watcher/src | |
parent | 3fb29041b0e6b874709eceac28505706e7929774 (diff) | |
download | dexon-sol-tools-11f0bebd7faff1a8ff0636e6f1a7d79b7db26104.tar dexon-sol-tools-11f0bebd7faff1a8ff0636e6f1a7d79b7db26104.tar.gz dexon-sol-tools-11f0bebd7faff1a8ff0636e6f1a7d79b7db26104.tar.bz2 dexon-sol-tools-11f0bebd7faff1a8ff0636e6f1a7d79b7db26104.tar.lz dexon-sol-tools-11f0bebd7faff1a8ff0636e6f1a7d79b7db26104.tar.xz dexon-sol-tools-11f0bebd7faff1a8ff0636e6f1a7d79b7db26104.tar.zst dexon-sol-tools-11f0bebd7faff1a8ff0636e6f1a7d79b7db26104.zip |
Fix a bug when undefined was been tried to convert to an array
Diffstat (limited to 'packages/order-watcher/src')
-rw-r--r-- | packages/order-watcher/src/order_watcher/dependent_order_hashes_tracker.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/order-watcher/src/order_watcher/dependent_order_hashes_tracker.ts b/packages/order-watcher/src/order_watcher/dependent_order_hashes_tracker.ts index dbcc25186..1ec568a9b 100644 --- a/packages/order-watcher/src/order_watcher/dependent_order_hashes_tracker.ts +++ b/packages/order-watcher/src/order_watcher/dependent_order_hashes_tracker.ts @@ -50,7 +50,7 @@ export class DependentOrderHashesTracker { return uniqueOrderHashList; } public getDependentOrderHashesByMaker(makerAddress: string): string[] { - const dependentOrderHashes = Array.from(this._orderHashesByMakerAddress[makerAddress]); + const dependentOrderHashes = Array.from(this._orderHashesByMakerAddress[makerAddress] || {}); return dependentOrderHashes; } public getDependentOrderHashesByAssetDataByMaker(makerAddress: string, assetData: string): string[] { |