Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

18201 Fix error after pressing Incorporate now #749

Merged
merged 4 commits into from
Dec 5, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 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 package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "name-request",
"version": "5.3.9",
"version": "5.3.10",
"private": true,
"appName": "Name Request UI",
"sbcName": "SBC Common Components",
Expand Down
9 changes: 7 additions & 2 deletions src/mixins/nr-affiliation-mixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,13 @@ export class NrAffiliationMixin extends Mixins(CommonMixin) {
// show spinner since this is a network call
this.$root.$emit('showSpinner', true)
const accountId = +JSON.parse(sessionStorage.getItem('CURRENT_ACCOUNT'))?.id || 0
const businessId = await this.createBusinessIA(accountId, legalType)
this.goToEntityDashboard(businessId)
// incorp requires user login, ignore if user is not logged in and return to NR page
if (accountId === 0) {
severinbeauvais marked this conversation as resolved.
Show resolved Hide resolved
this.$root.$emit('showSpinner', false)
} else {
const businessId = await this.createBusinessIA(accountId, legalType)
this.goToEntityDashboard(businessId)
}
severinbeauvais marked this conversation as resolved.
Show resolved Hide resolved
return
} catch (error) {
this.$root.$emit('showSpinner', false)
Expand Down
Loading