From e3dc862e6fa747ae0c6f16d9dc0994eb7e00871d Mon Sep 17 00:00:00 2001 From: Tyler Date: Wed, 4 Jul 2018 14:12:26 -0700 Subject: [PATCH] Alter user match compare to use lower case comparison. --- ui/src/app/components/poll/poll.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/app/components/poll/poll.component.ts b/ui/src/app/components/poll/poll.component.ts index 5875293..a441e47 100755 --- a/ui/src/app/components/poll/poll.component.ts +++ b/ui/src/app/components/poll/poll.component.ts @@ -510,7 +510,7 @@ 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++; @@ -518,7 +518,7 @@ export class PollComponent implements OnInit { 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; }