CSR-2166: protect against undefined typeerrors

This commit is contained in:
Adam Caouette 2024-09-23 18:53:13 -04:00
parent a0073adf46
commit 16783a0917
3 changed files with 3 additions and 3 deletions

View file

@ -177,7 +177,7 @@ export default {
},
shouldHideRecalibration() {
return (
this.getSettingValue(experimentSettings.RECAL_PRICE_REMOVE).toLowerCase() === "true" &&
this.getSettingValue(experimentSettings.RECAL_PRICE_REMOVE)?.toLowerCase() === "true" &&
this.isRecalibrationOnOrder
);
},

View file

@ -593,7 +593,7 @@ export default {
},
shouldHideRecalibration() {
return (
this.getSettingValue(experimentSettings.RECAL_PRICE_REMOVE).toLowerCase() === "true" &&
this.getSettingValue(experimentSettings.RECAL_PRICE_REMOVE)?.toLowerCase() === "true" &&
this.isRecalibrationOnOrder
);
},

View file

@ -403,7 +403,7 @@ export default {
},
shouldHideRecalibration() {
return (
this.getSettingValue(experimentSettings.RECAL_PRICE_REMOVE).toLowerCase() === "true" &&
this.getSettingValue(experimentSettings.RECAL_PRICE_REMOVE)?.toLowerCase() === "true" &&
this.isRecalibrationOnOrder
);
},