diff --git a/src/store/index.js b/src/store/index.js index 2899cef0..933347c0 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -345,6 +345,9 @@ export const useMainStore = defineStore({ const responsePolicy = r.data.policies?.[0]; policy.policyLookupSuccessful = !!responsePolicy; return r; + }).catch((error) => { + policy.policyLookupSuccessful = false; + return error; }); return response; } catch (responseError) {