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() {
|
||||
return this.mainStore.issConfig.isCoverageEnabled;
|
||||
},
|
||||
isCoverageLookupEnabled() {
|
||||
return this.mainStore.applicationUser.coverageAttempts <= 10;
|
||||
maxCoverageLookupAttemptsReached() {
|
||||
return this.mainStore.applicationUser.coverageAttempts >= 10;
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
|
@ -319,7 +319,7 @@ export default {
|
|||
await this.mainStore.getDuplicateReferrals()
|
||||
.then(() => {}, () => {})
|
||||
.finally(async () => {
|
||||
if (this.isCoverageEnabled && this.isCoverageLookupEnabled) {
|
||||
if (this.isCoverageEnabled && !this.maxCoverageLookupAttemptsReached) {
|
||||
await this.mainStore.getCoveragePolicyInfo()?.then(() => {}, () => {});
|
||||
} else {
|
||||
this.mainStore.order.policy.policyLookupSuccessful = false;
|
||||
|
|
|
|||
|
|
@ -441,7 +441,7 @@ export const useMainStore = defineStore({
|
|||
const { order } = this;
|
||||
const { policy } = order;
|
||||
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) => {
|
||||
globalMethods.callHttpClient({
|
||||
method: endpoints.CoveragePolicyInfo.method,
|
||||
|
|
|
|||
Loading…
Reference in a new issue