@open-tender/utils 0.5.50 → 0.5.51

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.
@@ -772,8 +772,10 @@ const validateCart = (cart, categories, soldOut, requestedAt) => {
772
772
  const updatedOptions = group.options.map(option => {
773
773
  let newOption = newGroup.options[option.id];
774
774
  if (!newOption) {
775
+ console.log('checking pos_ext_id for option match');
775
776
  const allOptions = Object.values(newGroup.options);
776
777
  const matchingOption = allOptions.find(o => o.pos_ext_id === option.pos_ext_id);
778
+ console.log(allOptions, option, matchingOption);
777
779
  if (matchingOption)
778
780
  newOption = matchingOption;
779
781
  }
@@ -736,8 +736,10 @@ export const validateCart = (cart, categories, soldOut, requestedAt) => {
736
736
  const updatedOptions = group.options.map(option => {
737
737
  let newOption = newGroup.options[option.id];
738
738
  if (!newOption) {
739
+ console.log('checking pos_ext_id for option match');
739
740
  const allOptions = Object.values(newGroup.options);
740
741
  const matchingOption = allOptions.find(o => o.pos_ext_id === option.pos_ext_id);
742
+ console.log(allOptions, option, matchingOption);
741
743
  if (matchingOption)
742
744
  newOption = matchingOption;
743
745
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/utils",
3
- "version": "0.5.50",
3
+ "version": "0.5.51",
4
4
  "description": "A library of utils for use with Open Tender applications that utilize our cloud-based Order API.",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",