PR revisions
This commit is contained in:
parent
a10e12a07b
commit
6733fbb85b
2 changed files with 4 additions and 4 deletions
|
|
@ -309,8 +309,8 @@ export default {
|
||||||
isCoverageEnabled() {
|
isCoverageEnabled() {
|
||||||
return this.mainStore.issConfig.isCoverageEnabled;
|
return this.mainStore.issConfig.isCoverageEnabled;
|
||||||
},
|
},
|
||||||
isCoverageLookupEnabled() {
|
maxCoverageLookupAttemptsReached() {
|
||||||
return this.mainStore.applicationUser.coverageAttempts <= 10;
|
return this.mainStore.applicationUser.coverageAttempts >= 10;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
@ -319,7 +319,7 @@ export default {
|
||||||
await this.mainStore.getDuplicateReferrals()
|
await this.mainStore.getDuplicateReferrals()
|
||||||
.then(() => {}, () => {})
|
.then(() => {}, () => {})
|
||||||
.finally(async () => {
|
.finally(async () => {
|
||||||
if (this.isCoverageEnabled && this.isCoverageLookupEnabled) {
|
if (this.isCoverageEnabled && !this.maxCoverageLookupAttemptsReached) {
|
||||||
await this.mainStore.getCoveragePolicyInfo()?.then(() => {}, () => {});
|
await this.mainStore.getCoveragePolicyInfo()?.then(() => {}, () => {});
|
||||||
} else {
|
} else {
|
||||||
this.mainStore.order.policy.policyLookupSuccessful = false;
|
this.mainStore.order.policy.policyLookupSuccessful = false;
|
||||||
|
|
|
||||||
|
|
@ -441,7 +441,7 @@ export const useMainStore = defineStore({
|
||||||
const { order } = this;
|
const { order } = this;
|
||||||
const { policy } = order;
|
const { policy } = order;
|
||||||
this.applicationUser.coverageAttempts += 1;
|
this.applicationUser.coverageAttempts += 1;
|
||||||
console.log(`Coverage attempt #${this.applicationUser.coverageAttempts}. Max attempts allowed: 10.`);
|
console.log(`Coverage lookup attempt #${this.applicationUser.coverageAttempts}. Max attempts allowed: 10.`);
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
globalMethods.callHttpClient({
|
globalMethods.callHttpClient({
|
||||||
method: endpoints.CoveragePolicyInfo.method,
|
method: endpoints.CoveragePolicyInfo.method,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue