@posiwise/common-services 0.2.19 → 0.2.21

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.
@@ -1239,7 +1239,9 @@ class AuthService {
1239
1239
  window.$crisp.push(['set', 'user:nickname', firstName]);
1240
1240
  }
1241
1241
  if (userId) {
1242
- window.$crisp.push(['set', 'session:data', [['user_id', [userId]]]]);
1242
+ // Crisp expects args array, with first item being the list of pairs:
1243
+ // $crisp.push(["set","session:data",[[["key","value"]]]])
1244
+ window.$crisp.push(['set', 'session:data', [[['user_id', String(userId)]]]]);
1243
1245
  }
1244
1246
  }
1245
1247
  this.notifyHubSpot(email, firstName, userId);