This commit is contained in:
2024-09-09 20:13:11 +02:00
parent 24ed50a48f
commit 17213ba4b0
2 changed files with 23 additions and 20 deletions

View File

@@ -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';