CSR-2179: prettier and reformat fixes

This commit is contained in:
Adam Caouette 2024-09-12 15:48:39 -04:00
parent 7cfcf07dd6
commit 81586b0e4f
3 changed files with 13 additions and 13 deletions

View file

@ -305,9 +305,9 @@ export default {
if (!this.lineItems || this.lineItems.length < 1) return; if (!this.lineItems || this.lineItems.length < 1) return;
const lineItemsCopy = deepClone(this.lineItems); const lineItemsCopy = deepClone(this.lineItems);
lineItemsCopy.supportingItems = lineItemsCopy.supportingItems ? baseMixin.methods.filterOutRecalibration( lineItemsCopy.supportingItems = lineItemsCopy.supportingItems
lineItemsCopy?.supportingItems ? baseMixin.methods.filterOutRecalibration(lineItemsCopy?.supportingItems)
) : []; : [];
return lineItemsCopy; return lineItemsCopy;
}, },
showCoverageAsPending() { showCoverageAsPending() {
@ -438,13 +438,15 @@ export default {
packagePrice() { packagePrice() {
let packagePrice = 0; let packagePrice = 0;
if (!this.isInsurance && this.shouldHideRecalibration) { // Update packagePrice if Cash only && is part of RemoveRecal experiment if (!this.isInsurance && this.shouldHideRecalibration) {
// Update packagePrice if Cash only && is part of RemoveRecal experiment
packagePrice = baseMixin.methods.getTierOnePackagePrice( packagePrice = baseMixin.methods.getTierOnePackagePrice(
baseMixin.methods.filterOutFees( baseMixin.methods.filterOutFees(
baseMixin.methods.filterOutRecalibration(this.availableLineItems) // Strip out recal before filtering out fees baseMixin.methods.filterOutRecalibration(this.availableLineItems) // Strip out recal before filtering out fees
) )
); );
} else if (!this.showCoverageAsVerified && !this.showCoverageAsPending) { // Update packagePrice if is verified insurance OR if Cash && not part of RemoveRecal experiment } else if (!this.showCoverageAsVerified && !this.showCoverageAsPending) {
// Update packagePrice if is verified insurance OR if Cash && not part of RemoveRecal experiment
packagePrice = baseMixin.methods.getTierOnePackagePrice( packagePrice = baseMixin.methods.getTierOnePackagePrice(
baseMixin.methods.filterOutFees(this.availableLineItems) baseMixin.methods.filterOutFees(this.availableLineItems)
); );
@ -1001,7 +1003,7 @@ export default {
if (!this.lineItems || this.lineItems.length < 1) return; if (!this.lineItems || this.lineItems.length < 1) return;
return this.isInsurance || !this.shouldHideRecalibration return this.isInsurance || !this.shouldHideRecalibration
? baseMixin.methods.getSubTotal(this.lineItems) // calculate with recal (if on order) ? baseMixin.methods.getSubTotal(this.lineItems) // calculate with recal (if on order)
: baseMixin.methods.getSubTotal(this.lineItemsWithoutRecal); // calculated without recal : baseMixin.methods.getSubTotal(this.lineItemsWithoutRecal); // calculate without recal
}, },
salesTax() { salesTax() {
if (!this.lineItems || this.lineItems.length < 1) return; if (!this.lineItems || this.lineItems.length < 1) return;

View file

@ -170,9 +170,7 @@ export default {
}, },
computed: { computed: {
shouldHideRecalibration() { shouldHideRecalibration() {
return this.getSettingValue( return this.getSettingValue(experimentSettings.RECAL_PRICE_REMOVE);
experimentSettings.RECAL_PRICE_REMOVE
);
}, },
ShowCart() { ShowCart() {
if (this.isPia && this.submittedOrder?.settledTenderAmount == 0) { if (this.isPia && this.submittedOrder?.settledTenderAmount == 0) {

View file

@ -55,7 +55,9 @@
class="service-questions" /> class="service-questions" />
<textBlock cmsWidgetName="CallOrTextWidget" justifyText="left" /> <textBlock cmsWidgetName="CallOrTextWidget" justifyText="left" />
<hr class="my-5" /> <hr class="my-5" />
<div class="d-flex flex-row checkbox-group" v-if="isRecalibrationOnOrder && shouldHideRecalibration"> <div
class="d-flex flex-row checkbox-group"
v-if="isRecalibrationOnOrder && shouldHideRecalibration">
<checkboxQuestion <checkboxQuestion
cmsWidgetName="RecalConfirmWidget" cmsWidgetName="RecalConfirmWidget"
class="mb-5" class="mb-5"
@ -592,9 +594,7 @@ export default {
); );
}, },
shouldHideRecalibration() { shouldHideRecalibration() {
return this.getSettingValue( return this.getSettingValue(experimentSettings.RECAL_PRICE_REMOVE);
experimentSettings.RECAL_PRICE_REMOVE
);
}, },
showApplePay() { showApplePay() {
return baseMixin.methods.showApplePay(); return baseMixin.methods.showApplePay();