@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.
- package/dist/cjs/utils/cart.js +2 -0
- package/dist/esm/utils/cart.js +2 -0
- package/package.json +1 -1
package/dist/cjs/utils/cart.js
CHANGED
|
@@ -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
|
}
|
package/dist/esm/utils/cart.js
CHANGED
|
@@ -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