@searchspring/snap-store-mobx 0.66.1 → 0.66.3

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.
@@ -365,7 +365,7 @@ var Variants = /** @class */ (function () {
365
365
  // filter by first available, then by preselected option preference
366
366
  //make all options available for first selection.
367
367
  var availableOptions = selection.values.filter(function (value) { return (idx == 0 ? true : value.available); });
368
- var preferedOptions = options[selection.field];
368
+ var preferedOptions = options[selection.field.toLowerCase()];
369
369
  var preferencedOption = selection.selected || availableOptions[0];
370
370
  // if theres a preference for that field
371
371
  if (preferedOptions) {
@@ -295,7 +295,7 @@ export class Variants {
295
295
  // filter by first available, then by preselected option preference
296
296
  //make all options available for first selection.
297
297
  const availableOptions = selection.values.filter((value) => (idx == 0 ? true : value.available));
298
- const preferedOptions = options[selection.field];
298
+ const preferedOptions = options[selection.field.toLowerCase()];
299
299
  let preferencedOption = selection.selected || availableOptions[0];
300
300
  // if theres a preference for that field
301
301
  if (preferedOptions) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@searchspring/snap-store-mobx",
3
- "version": "0.66.1",
3
+ "version": "0.66.3",
4
4
  "description": "Snap MobX Store",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -20,16 +20,16 @@
20
20
  "test:watch": "jest --watch"
21
21
  },
22
22
  "dependencies": {
23
- "@searchspring/snap-toolbox": "^0.66.1",
23
+ "@searchspring/snap-toolbox": "^0.66.3",
24
24
  "mobx": "6.9.0"
25
25
  },
26
26
  "devDependencies": {
27
- "@searchspring/snap-client": "^0.66.1",
28
- "@searchspring/snap-url-manager": "^0.66.1"
27
+ "@searchspring/snap-client": "^0.66.3",
28
+ "@searchspring/snap-url-manager": "^0.66.3"
29
29
  },
30
30
  "sideEffects": false,
31
31
  "files": [
32
32
  "dist/**/*"
33
33
  ],
34
- "gitHead": "a9d6de5e5e144ca964e8a19d9dba5c63d9d94db6"
34
+ "gitHead": "200c5a8f94b21f28c3c440917650665a516fd9c6"
35
35
  }