zar 0.4.1 → 0.4.2

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/zar.es.js CHANGED
@@ -1693,8 +1693,8 @@ function poolActive() {
1693
1693
  return window.zarPoolData && window.zarPoolData.status === NUMBER_POOL_SUCCESS && window.zarPoolData.number;
1694
1694
  }
1695
1695
  function drainPoolDataLayer() {
1696
- if (!window.zarPoolDataLayer || !Array.isArray(window.zarPoolDataLayer)) {
1697
- return {};
1696
+ if (!window.zarPoolDataLayer || !Array.isArray(window.zarPoolDataLayer) || window.zarPoolDataLayer.length === 0) {
1697
+ return null;
1698
1698
  }
1699
1699
  var mergedObject = {};
1700
1700
  for (var i2 = 0; i2 < window.zarPoolDataLayer.length; i2++) {