Skip to content

Commit

Permalink
18716 added phone number and email address to name request correction… (
Browse files Browse the repository at this point in the history
bcgov#547)

* 18716 added phone number and email address to name request correction on file and pay

* updated package json

* removed debug code
  • Loading branch information
PaulGarewal authored Nov 28, 2023
1 parent 0284ccc commit 1c482b9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
4 changes: 2 additions & 2 deletions 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": "business-edit-ui",
"version": "4.7.9",
"version": "4.7.10",
"private": true,
"appName": "Edit UI",
"sbcName": "SBC Common Components",
Expand Down
9 changes: 8 additions & 1 deletion src/components/common/Actions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,14 @@ export default class Actions extends Mixins(DateMixin, FilingTemplateMixin, Name
// Request is invalid, and clicking OK in the pop up redirects to My Business Registry.
if (this.getNameRequestNumber) {
try {
await this.validateNameRequest(this.getNameRequestNumber)
if (this.getNameRequest.applicant) {
await this.validateNameRequest(
this.getNameRequestNumber,
this.getNameRequest.applicant.phoneNumber,
this.getNameRequest.applicant.emailAddress)
} else {
await this.validateNameRequest(this.getNameRequestNumber)
}
} catch (error) {
// "validateNameRequest" handles its own errors
this.setIsFilingPaying(false)
Expand Down

0 comments on commit 1c482b9

Please sign in to comment.