From 5e99b3750fbf02855270417a9dd544431bf0c350 Mon Sep 17 00:00:00 2001 From: Kevin Zhang <54437031+kzdev420@users.noreply.github.com> Date: Wed, 22 Nov 2023 14:20:41 -0500 Subject: [PATCH] 18625 Fix validate nr func (#584) * fix validate nr func * update version --- package-lock.json | 4 ++-- package.json | 2 +- src/components/Restoration/BusinessName.vue | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6bc8ff1f8..ab96a692c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "business-create-ui", - "version": "5.6.2", + "version": "5.6.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "business-create-ui", - "version": "5.6.2", + "version": "5.6.3", "dependencies": { "@babel/compat-data": "^7.21.5", "@bcrs-shared-components/approval-type": "1.0.19", diff --git a/package.json b/package.json index d1d063b4e..7aab4c1d3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "business-create-ui", - "version": "5.6.2", + "version": "5.6.3", "private": true, "appName": "Create UI", "sbcName": "SBC Common Components", diff --git a/src/components/Restoration/BusinessName.vue b/src/components/Restoration/BusinessName.vue index d25f3e7a1..02a1496f5 100644 --- a/src/components/Restoration/BusinessName.vue +++ b/src/components/Restoration/BusinessName.vue @@ -155,11 +155,12 @@ export default class BusinessName extends Mixins(CommonMixin, DateMixin, NameReq /** * Fetches and validation a NR. * @param nrNum the NR number + * @param businessId the business id * @param phone the phone number to match * @param email the email address to match * @returns a promise to return the NR, or throws a printable error */ - async fetchAndValidateNr (nrNum: string, phone: string, email: string): Promise { + async fetchAndValidateNr (nrNum: string, businessId: string, phone: string, email: string): Promise { const nameRequest = await LegalServices.fetchValidContactNr(nrNum, phone, email) if (!nameRequest) throw new Error('Error fetching Name Request')