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 (