diff --git a/src/app/user/promote/promote.component.html b/src/app/user/promote/promote.component.html index 735ca059..0b48cb99 100644 --- a/src/app/user/promote/promote.component.html +++ b/src/app/user/promote/promote.component.html @@ -62,7 +62,7 @@
Search for company - + {{ comp.name }} diff --git a/src/app/user/promote/promote.component.ts b/src/app/user/promote/promote.component.ts index 62fc97aa..aabe7dbd 100644 --- a/src/app/user/promote/promote.component.ts +++ b/src/app/user/promote/promote.component.ts @@ -180,11 +180,11 @@ export class PromoteComponent implements OnInit { } onKey(value) { - this.selectedCompanies = this.search(value.name); + this.selectedCompanies = this.search(value); } - search(value: Company) { - let filter = value.name.toLowerCase(); + search(value: string) { + let filter = value.toLowerCase(); return this.companies.filter(comp => comp.name.toLowerCase().includes(filter)); } }