From 878f0b2047f2a74446309f64b0b317aee3c1fe42 Mon Sep 17 00:00:00 2001 From: JihengLi Date: Tue, 9 Apr 2024 01:34:43 -0500 Subject: [PATCH] typo change --- components/judges/TeamSelect.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;