diff --git a/components/judges/TeamSelect.tsx b/components/judges/TeamSelect.tsx index c9bd251a..4dca5d2a 100644 --- a/components/judges/TeamSelect.tsx +++ b/components/judges/TeamSelect.tsx @@ -26,7 +26,7 @@ const optionComparator = (input: string, option: string) => { const cin = input.toLowerCase(); const opt = option.toLowerCase(); for (let i = 0; i < opt.length; ++i) { - if (opt[i] === cin[searchPosition]) searchPosition++; + if (opt[i] === cin[searchPosition]) ++searchPosition; else break; } return searchPosition === input.length;