add .catch() to method
This commit is contained in:
parent
9242b19421
commit
8def45c7da
1 changed files with 2 additions and 2 deletions
|
|
@ -345,9 +345,9 @@ export const useMainStore = defineStore({
|
|||
const responsePolicy = r.data.policies?.[0];
|
||||
policy.policyLookupSuccessful = !!responsePolicy;
|
||||
return r;
|
||||
}, (r) => {
|
||||
}).catch((error) => {
|
||||
policy.policyLookupSuccessful = false;
|
||||
return r;
|
||||
return error;
|
||||
});
|
||||
return response;
|
||||
} catch (responseError) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue