Skip to content

Commit

Permalink
Product: change essential meas for overalls
Browse files Browse the repository at this point in the history
  • Loading branch information
nomasi committed Feb 5, 2025
1 parent cfa244d commit 7a669c9
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions src/api/ProductModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,19 +194,13 @@ function getEssentialMeasurements(itemTypeArr, meas) {
if (isInMeas(meas, "chest")) {
arr.push("chest");
}
if (itemTypeArr[3] >= 6 && itemTypeArr[2] === 1) {
if (isInMeas(meas, "sleeve")) {
arr.push("sleeve");
}
} else {
if (isInMeas(meas, "waist")) {
arr.push("waist");
}
if (itemTypeArr[3] >= 6 && itemTypeArr[2] === 1 && isInMeas(meas, "sleeve")) {
arr.push("sleeve");
}
if (arr.length < 3) {
if (isInMeas(meas, "pant_waist")) {
arr.push("pant_waist");
}
if (isInMeas(meas, "waist")) {
arr.push("waist");
} else if (isInMeas(meas, "pant_waist")) {
arr.push("pant_waist");
}
if (arr.length < 3) {
if (isInMeas(meas, "hips")) {
Expand Down

0 comments on commit 7a669c9

Please sign in to comment.