From 41af06f7187267817e8185bacb829525fa9b0696 Mon Sep 17 00:00:00 2001 From: Lars Nolden Date: Fri, 11 Sep 2026 15:18:09 +0200 Subject: [PATCH] show exact match --- web/src/Accounts.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/web/src/Accounts.tsx b/web/src/Accounts.tsx index ea585fe..865af70 100644 --- a/web/src/Accounts.tsx +++ b/web/src/Accounts.tsx @@ -849,7 +849,12 @@ function InstitutionSelect({ const matches = (institutions ?? []).filter((i) => i.name.toLowerCase().includes(filter), ); - const shown = matches.slice(0, 60); + const exact = filter + ? matches.find((i) => i.name.toLowerCase() === filter) + : undefined; + const shown = exact + ? [exact, ...matches.filter((i) => i !== exact).slice(0, 59)] + : matches.slice(0, 60); const selected = institutions?.find((i) => i.name === value); return (