-
Notifications
You must be signed in to change notification settings - Fork 49
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
19561 corpNumber to identifier in foreign amalgamating business #644
Conversation
/gcbrun |
Temporary Url for review: https://business-create-dev--pr-644-nq6dlj73.web.app |
// no auth info and business info means foreign, otherwise LEAR (affiliated or non-affiliated) | ||
if (!tingBusiness.authInfo && !tingBusiness.businessInfo) { | ||
// check if foreign | ||
if (item.foreignJurisdiction) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I like this.
Can you remove the comment on line 301 now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Karim, this should work, right?
legalName: item.legalName, | ||
foreignJurisdiction: item.foreignJurisdiction | ||
} as AmalgamatingBusinessIF | ||
} else { | ||
const tingBusiness = await this.fetchAmalgamatingBusinessInfo(item.identifier) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This assumes that all business info is successfully fetched but that's probably OK.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Issue #: /bcgov/entity#19561
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the bcrs-entities-create-ui license (Apache 2.0).