Merge pull request #1531 from Safelite/feature/CSR-1780-bugfix-ajc

CSR-1778: Fix to swap button positions
This commit is contained in:
AdamCaouetteSafelite 2023-11-15 10:03:17 -05:00 committed by GitHub
commit 2812413f05
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -287,13 +287,6 @@ export default {
return answers[answerIndex];
};
if (!this.rainDefenseInCart) {
// NO RAIN DEFENSE IN CART; SHOW RAIN DEFENSE BUTTON
const modalData = getAnswer("RainDefenseModal", this.answersCmsData);
modalData.SubText = "+$" + this.rainDefenseModal?.listPrice;
buttons.push(modalData);
}
const modalData = getAnswer("WipersModal", this.answersCmsData);
if (this.wipersOffered === wipersOfferedStrings.BOTH) {
// NO REAR WIPERS or FRONT WIPERS IN CART; SHOW COMBO BUTTON
@ -318,6 +311,13 @@ export default {
buttons.push(modalData);
}
if (!this.rainDefenseInCart) {
// NO RAIN DEFENSE IN CART; SHOW RAIN DEFENSE BUTTON
const modalData = getAnswer("RainDefenseModal", this.answersCmsData);
modalData.SubText = "+$" + this.rainDefenseModal?.listPrice;
buttons.push(modalData);
}
return buttons;
},
wipersOfferedStrings() {