Skip to content

Commit

Permalink
Small fix for searching business identifiers (bcgov#2889)
Browse files Browse the repository at this point in the history
  • Loading branch information
seeker25 authored Jun 27, 2024
1 parent 811dd38 commit 182a33e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions auth-web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion auth-web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "auth-web",
"version": "2.6.38",
"version": "2.6.39",
"appName": "Auth Web",
"sbcName": "SBC Common Components",
"private": true,
Expand Down
4 changes: 3 additions & 1 deletion auth-web/src/stores/business.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}
}

Expand Down
3 changes: 1 addition & 2 deletions auth-web/src/views/auth/staff/StaffDashboardView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit 182a33e

Please sign in to comment.