diff --git a/auth-web/package-lock.json b/auth-web/package-lock.json index f52aaa965d..4e76f80f42 100644 --- a/auth-web/package-lock.json +++ b/auth-web/package-lock.json @@ -1,12 +1,12 @@ { "name": "auth-web", - "version": "2.6.38", + "version": "2.6.39", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "auth-web", - "version": "2.6.38", + "version": "2.6.39", "dependencies": { "@bcrs-shared-components/base-address": "2.0.3", "@bcrs-shared-components/bread-crumb": "1.0.8", diff --git a/auth-web/package.json b/auth-web/package.json index e5b40ebfbb..ceffb396d2 100644 --- a/auth-web/package.json +++ b/auth-web/package.json @@ -1,6 +1,6 @@ { "name": "auth-web", - "version": "2.6.38", + "version": "2.6.39", "appName": "Auth Web", "sbcName": "SBC Common Components", "private": true, diff --git a/auth-web/src/stores/business.ts b/auth-web/src/stores/business.ts index ff96841c9b..377d6160d8 100644 --- a/auth-web/src/stores/business.ts +++ b/auth-web/src/stores/business.ts @@ -400,8 +400,10 @@ export const useBusinessStore = defineStore('business', () => { if (response?.status === 200 && response?.data?.business?.legalName) { ConfigHelper.addToSession(SessionStorageKeys.BusinessIdentifierKey, businessIdentifier) return response.data.business + } else if (response?.status === 404) { + throw Error('No match found for Incorporation Number') } else { - throw Error('search failed') + throw Error('Search failed') } } diff --git a/auth-web/src/views/auth/staff/StaffDashboardView.vue b/auth-web/src/views/auth/staff/StaffDashboardView.vue index e8ecc6fd68..85d994369c 100644 --- a/auth-web/src/views/auth/staff/StaffDashboardView.vue +++ b/auth-web/src/views/auth/staff/StaffDashboardView.vue @@ -388,8 +388,7 @@ export default defineComponent({ localVars.affiliatedOrg = await orgStore.getOrganizationForAffiliate() localVars.canViewIncorporationSearchResult = true } catch (exception) { - // eslint-disable-next-line no-console - console.log('Error during search incorporations event!') + localVars.errorMessage = exception?.message localVars.canViewIncorporationSearchResult = false businessStore.resetCurrentBusiness() }