diff --git a/src/store/index.js b/src/store/index.js index 7d954770..62daba35 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -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) {