Skip to content

Commit

Permalink
fix: participant search
Browse files Browse the repository at this point in the history
  • Loading branch information
jibon57 committed Jan 22, 2025
1 parent 447169e commit e501214
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/components/participants/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,9 @@ const ParticipantsComponent = () => {
p.name !== '' && p.userId !== 'RECORDER_BOT' && p.userId !== 'RTMP_BOT',
);
if (searchParticipant) {
list = list.filter((p) => {
return p.name
.toLocaleLowerCase()
.match(searchParticipant.toLocaleLowerCase());
});
list = list.filter((p) =>
p.name.toLocaleLowerCase().match(searchParticipant.toLocaleLowerCase()),
);
}
setParticipants(list);
}, [totalParticipants, searchParticipant]);
Expand Down

0 comments on commit e501214

Please sign in to comment.