From 8def45c7daf9ac6be550326b70db23d58fcb515e Mon Sep 17 00:00:00 2001 From: Katie Kroell Date: Thu, 10 Aug 2023 11:16:39 -0400 Subject: [PATCH] add .catch() to method --- src/store/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {