get correct isVerified value
This commit is contained in:
parent
9a578be0b7
commit
4d27a95b1c
2 changed files with 3 additions and 2 deletions
|
|
@ -181,7 +181,7 @@ export default {
|
|||
},
|
||||
data() {
|
||||
return {
|
||||
isVerified: true, // once verification is complete, change to store.order.payment.insuranceCoverage.isVerified
|
||||
isVerified: store.order.payment.insuranceCoverage.isVerified,
|
||||
supportingItems: [],
|
||||
pricedGlassParts: [],
|
||||
availableLineItems: [],
|
||||
|
|
|
|||
|
|
@ -374,6 +374,7 @@ export const useMainStore = defineStore({
|
|||
// TODO: replace place holder correlationId with the real thing
|
||||
const placeHolderCorrelationId = '00000000-0000-0000-0000-000000000000';
|
||||
const nonNumberCharRegex = /[^0-9]/g;
|
||||
const order = this.order;
|
||||
globalMethods.callHttpClient({
|
||||
method: endpoints.RegisterClaim.method,
|
||||
endpoint: endpoints.RegisterClaim.url,
|
||||
|
|
@ -427,7 +428,7 @@ export const useMainStore = defineStore({
|
|||
}
|
||||
}).then((response) => {
|
||||
const registerClaimFailed = response.data.isError;
|
||||
this.order.payment.insuranceCoverage.isVerified = !registerClaimFailed;
|
||||
order.payment.insuranceCoverage.isVerified = !registerClaimFailed;
|
||||
if (registerClaimFailed) {
|
||||
this.order.payment.insuranceCoverage.coverageStatus = coverageStatuses.PENDING;
|
||||
} else if (this.policy.noCoverage) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue