+
+
-
}
-
-
+
[Add more licenses or remove existing ones.]
diff --git a/bizmatch/src/app/pages/subscription/account/account.component.ts b/bizmatch/src/app/pages/subscription/account/account.component.ts
index dc4285c..cac5ad4 100644
--- a/bizmatch/src/app/pages/subscription/account/account.component.ts
+++ b/bizmatch/src/app/pages/subscription/account/account.component.ts
@@ -204,14 +204,14 @@ export class AccountComponent {
addLicence() {
this.user.licensedIn.push({ registerNo: '', state: '' });
}
- removeLicence() {
- this.user.licensedIn.splice(this.user.licensedIn.length - 1, 1);
+ removeLicence(index: number) {
+ this.user.licensedIn.splice(index, 1);
}
addArea() {
this.user.areasServed.push({ county: '', state: '' });
}
- removeArea() {
- this.user.areasServed.splice(this.user.areasServed.length - 1, 1);
+ removeArea(index: number) {
+ this.user.areasServed.splice(index, 1);
}
get isProfessional() {
return this.user.customerType === 'professional';