From 575f2cc89ff8f3ec51c786f3cf52a11cc10ec561 Mon Sep 17 00:00:00 2001 From: "tom.deboer" Date: Mon, 9 Aug 2021 10:31:44 +0200 Subject: [PATCH] fix filter organisationswitcher lowercase --- src/components/OrganisationSwitcher.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/OrganisationSwitcher.tsx b/src/components/OrganisationSwitcher.tsx index c043ef592..555669bdf 100644 --- a/src/components/OrganisationSwitcher.tsx +++ b/src/components/OrganisationSwitcher.tsx @@ -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;