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

Commit

Permalink
fix filter organisationswitcher lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
tom.deboer committed Aug 9, 2021
1 parent 61690f0 commit 575f2cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/OrganisationSwitcher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const OrganisationSwitcher = (props:Props) => {
const filteredOrganisations = filterValue
// todo: fix this any
? organisations.filter((org:any) => {
if (org.name.toLowerCase().indexOf(filterValue) !== -1) {
if (org.name.toLowerCase().indexOf(filterValue.toLowerCase()) !== -1) {
return org;
}
return false;
Expand Down

0 comments on commit 575f2cc

Please sign in to comment.