Merge pull request #2088 from Safelite/feature/CSR-2303

CSR-2303 insurance should always show recal
This commit is contained in:
CarlNation 2024-11-08 15:03:13 -05:00 committed by GitHub
commit 6157082a8e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -819,7 +819,15 @@ export const getters = {
return false;
},
shouldHideRecalibration: (state) => {
if (state.order.policy.isNoComp || state.order.policy.isItac) {
let order;
if (window.sessionStorage.getItem("submittedOrder") !== null) {
order = JSON.parse(window.sessionStorage.getItem("submittedOrder"));
}
else {
order = getters.order;
}
if (order.payment.isInsurance) {
return false;
}