diff --git a/src/layouts/payment-method/payment-method.vue b/src/layouts/payment-method/payment-method.vue index 332936ba6..cc720cffc 100644 --- a/src/layouts/payment-method/payment-method.vue +++ b/src/layouts/payment-method/payment-method.vue @@ -46,14 +46,14 @@ v-bind:isDismissible="false" /> -
+

-
+
lineItem.partType.indexOf(partTypeStrings.RECALIBRATION) !== -1 + isRecalibrationOnOrder() { + return containsLineItemWithPartType( + partTypeStrings.RECALIBRATION, + this.$store.getters.order.lineItems?.supportingItems ); - - if (recalLineItem) { - return true; - } - return false; + }, + shouldHideRecalibration() { + const recalSettingValue = experimentMixin.methods.getSettingValue( + experimentSettings.RECAL_PRICE_REMOVE + ); + return recalSettingValue; }, showApplePay() { return baseMixin.methods.showApplePay(); @@ -658,7 +662,7 @@ export default { return true; } } else { - if (this.isPiaEnabled && this.totalAmountDue > 0 && !this.hasRecal) { + if (this.isPiaEnabled && this.totalAmountDue > 0 && !this.isRecalibrationOnOrder) { return true; } }