CSR-2166: make shouldHideRecalibration consistent across pages
This commit is contained in:
parent
5331699d53
commit
9bb3832610
2 changed files with 14 additions and 9 deletions
|
|
@ -169,11 +169,17 @@ export default {
|
|||
};
|
||||
},
|
||||
computed: {
|
||||
isRecalibrationOnOrder() {
|
||||
return containsLineItemWithPartType(
|
||||
partTypeStrings.RECALIBRATION,
|
||||
this?.lineItems?.supportingItems
|
||||
);
|
||||
},
|
||||
shouldHideRecalibration() {
|
||||
const recalSettingValue =
|
||||
this.getSettingValue(experimentSettings.RECAL_PRICE_REMOVE)?.toLowerCase() ===
|
||||
"true";
|
||||
return recalSettingValue;
|
||||
return (
|
||||
this.getSettingValue(experimentSettings.RECAL_PRICE_REMOVE).toLowerCase() === "true" &&
|
||||
this.isRecalibrationOnOrder
|
||||
);
|
||||
},
|
||||
ShowCart() {
|
||||
if (this.isPia && this.submittedOrder?.settledTenderAmount == 0) {
|
||||
|
|
|
|||
|
|
@ -402,11 +402,10 @@ export default {
|
|||
);
|
||||
},
|
||||
shouldHideRecalibration() {
|
||||
const recalSettingValue =
|
||||
experimentMixin.methods
|
||||
.getSettingValue(experimentSettings.RECAL_PRICE_REMOVE)
|
||||
?.toLowerCase() === "true";
|
||||
return recalSettingValue;
|
||||
return (
|
||||
this.getSettingValue(experimentSettings.RECAL_PRICE_REMOVE).toLowerCase() === "true" &&
|
||||
this.isRecalibrationOnOrder
|
||||
);
|
||||
},
|
||||
showAfterpayBanner() {
|
||||
return (
|
||||
|
|
|
|||
Loading…
Reference in a new issue