Merge pull request #522 from Safelite/feature/SSR-1023
fix conditional logic
This commit is contained in:
commit
7648904408
1 changed files with 2 additions and 2 deletions
|
|
@ -171,7 +171,7 @@ export default {
|
|||
];
|
||||
|
||||
let pricingResults = [];
|
||||
if (useMainStore().order.policy.policyLookupSuccessful && useMainStore().order.vehicle.policyVehicleId) {
|
||||
if (useMainStore().order.policy.policyLookupSuccessful && useMainStore().order.vehicle.policyVehicleId >= 0) {
|
||||
await useMainStore().getFinalDeductible();
|
||||
pricingResults = await useMainStore().getPriceOrderItems(availableLineItems)
|
||||
.catch((err) => {
|
||||
|
|
@ -357,7 +357,7 @@ export default {
|
|||
async initializeComponent() {
|
||||
useMainStore().updatePolicyITACFlag(this.verifiedITAC);
|
||||
if (this.policyLookupSuccessful
|
||||
&& useMainStore().order.vehicle.policyVehicleId
|
||||
&& useMainStore().order.vehicle.policyVehicleId >= 0
|
||||
&& useMainStore().isClaimRegistrationRequired
|
||||
&& (this.coveredAndServicePriceAboveOrEqualDeductible || this.verifiedITAC)) {
|
||||
await useMainStore().registerClaim()?.catch(() => {});
|
||||
|
|
|
|||
Loading…
Reference in a new issue