Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinavv245 authored and Tanya Madaan committed Jan 24, 2024
1 parent 1a2b7e2 commit 4983e14
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ const checkConfirm = async (data, msgIdSet) => {
const itemDiff = utils.findDifferencesInArrays(items, selectedItems);
console.log(itemDiff);
itemDiff.forEach((item, i) => {
if(item?.attributes?.length>0){
let itemkey = `item-${i}-DiffErr`;
cnfrmObj[
itemkey
] = `In /items, '${item.attributes}' mismatch from /select`;
}
});
} catch (error) {
console.log(error);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@ const checkInit = (data, msgIdSet) => {
const itemDiff = utils.findDifferencesInArrays(items, selectedItems);
console.log(itemDiff);
itemDiff.forEach((item, i) => {
if(item?.attributes?.length>0){
let itemkey = `item-${i}-DiffErr`;
initObj[
itemkey
] = `In /items, '${item.attributes}' mismatch from /select`;
}
});
} catch (error) {
console.log(error);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,18 @@ const checkOnSelect = async (data, msgIdSet) => {
const itemDiff = utils.findDifferencesInArrays(items, selectedItems);
console.log(itemDiff);
itemDiff.forEach((item, i) => {
if(item?.attributes?.length>0){
let itemkey = `item-${i}-DiffErr`;
onSelectObj[
itemkey
] = `In /items, '${item.attributes}' mismatch from /select`;
}
});
} catch (error) {
console.log(error);
}


try {
console.log(`Checking quote object in /on_select api`);
quote?.breakup.forEach((breakup, i) => {
Expand Down

0 comments on commit 4983e14

Please sign in to comment.