@orderly.network/hooks 0.0.94 → 0.0.95

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -657,7 +657,7 @@ var reduceItems = (depth, level, data, asks = false) => {
657
657
  } else {
658
658
  priceKey = new Decimal(Math.floor(price / depth)).mul(depth).toNumber();
659
659
  }
660
- if (depth < 1 && depth > 0) {
660
+ if (depth < 1 && depth > 0 && priceKey.toString().indexOf(".") !== -1) {
661
661
  const priceStr = price.toString();
662
662
  const index = priceStr.indexOf(".");
663
663
  const decimal = priceStr.slice(index + 1);