sfc-utils 1.4.156 → 1.4.158

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/personalize.js +7 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sfc-utils",
3
- "version": "1.4.156",
3
+ "version": "1.4.158",
4
4
  "author": "ewagstaff <evanjwagstaff@gmail.com>",
5
5
  "dependencies": {
6
6
  "archieml": "^0.4.2",
package/personalize.js CHANGED
@@ -7,7 +7,13 @@ const getProfileProperty = (property) => {
7
7
  const checkForBlueConic = (innerResolve) => {
8
8
  if (window.blueConicClient) {
9
9
  const profile = window.blueConicClient.profile.getProfile();
10
- const properties = [property];
10
+ // Check if property is an array
11
+ let properties = [];
12
+ if (Array.isArray(property)) {
13
+ properties = property;
14
+ } else {
15
+ properties = [property];
16
+ }
11
17
  profile.loadValues(properties, this, function () {
12
18
  var value = profile.getValue(property);
13
19
  // Return a valid result or null