@deriv-com/analytics 1.5.7 → 1.5.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/lib/analytics.js +1 -1
  2. package/package.json +1 -1
package/lib/analytics.js CHANGED
@@ -56,7 +56,7 @@ function createAnalyticsInstance(options) {
56
56
  var getFeatureValue = function (id, defaultValue) { return _growthbook === null || _growthbook === void 0 ? void 0 : _growthbook.getFeatureValue(id, defaultValue); };
57
57
  var isFeatureOn = function (key) { return _growthbook === null || _growthbook === void 0 ? void 0 : _growthbook.isOn(key); };
58
58
  var setUrl = function (href) { return _growthbook === null || _growthbook === void 0 ? void 0 : _growthbook.setUrl(href); };
59
- var getId = function () { return _rudderstack === null || _rudderstack === void 0 ? void 0 : _rudderstack.getUserId(); };
59
+ var getId = function () { return (_rudderstack === null || _rudderstack === void 0 ? void 0 : _rudderstack.getUserId()) || ''; };
60
60
  /**
61
61
  * Pushes page view event to Rudderstack
62
62
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deriv-com/analytics",
3
- "version": "1.5.7",
3
+ "version": "1.5.8",
4
4
  "description": "The analytics package contains all the utility functions used for tracking user events and sending them to the respective platform such as Rudderstack.",
5
5
  "keywords": [
6
6
  "rudderstack",