add .catch() to method

This commit is contained in:
Katie Kroell 2023-08-10 11:16:39 -04:00
parent 9242b19421
commit 8def45c7da

View file

@ -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) {