Skip to content
This repository was archived by the owner on Jan 29, 2025. It is now read-only.

Commit ff3380b

Browse files
authored
Merge pull request #447 from sinfo/staging
Update 2.4.0
2 parents 95141e6 + f4d0e3a commit ff3380b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/app/user/promote/promote.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ <h5 *ngIf="info && info.length > 0 && info !== 'team'" class='name center'>
6262
<div class="col-sm-6 promote typeahead">
6363
<mat-form-field appearance="fill" style="width: 100%; background-color: white;">
6464
<mat-label>Search for company</mat-label>
65-
<mat-select name="searchCompany" id="searchCompany" name="searchCompany" [(ngModel)]="searchedCompany">
65+
<mat-select name="searchCompany" id="searchCompany" [(ngModel)]="searchedCompany">
6666
<input (keyup)="onKey($event.target.value)" style="width: 100%;">
6767
<mat-option *ngFor="let comp of selectedCompanies" [value]="comp">
6868
{{ comp.name }}

src/app/user/promote/promote.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,11 @@ export class PromoteComponent implements OnInit {
180180
}
181181

182182
onKey(value) {
183-
this.selectedCompanies = this.search(value.name);
183+
this.selectedCompanies = this.search(value);
184184
}
185185

186-
search(value: Company) {
187-
let filter = value.name.toLowerCase();
186+
search(value: string) {
187+
let filter = value.toLowerCase();
188188
return this.companies.filter(comp => comp.name.toLowerCase().includes(filter));
189189
}
190190
}

0 commit comments

Comments
 (0)