Skip to content
This repository has been archived by the owner on Dec 31, 2022. It is now read-only.

Commit

Permalink
Alter user match compare to use lower case comparison.
Browse files Browse the repository at this point in the history
  • Loading branch information
dessalines committed Jul 4, 2018
1 parent a728a5f commit e3dc862
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/src/app/components/poll/poll.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -510,15 +510,15 @@ export class PollComponent implements OnInit {
let ulm: UserListMatch = {
text: userSearchString
};
let index = this.poll.users.findIndex(u => u.name.includes(ulm.text));
let index = this.poll.users.findIndex(u => u.name.toLowerCase().includes(ulm.text.toLowerCase()));
if (index != -1) {
ulm.user = this.poll.users[index];
participation++;
}
ulms.push(ulm);
}
this.poll.user_list_matches = ulms;
this.poll.participation_pct = participation / ulms.length * 100
this.poll.participation_pct = participation / ulms.length * 100;
return ulms;
}

Expand Down

0 comments on commit e3dc862

Please sign in to comment.