From 15f32a004499e595623033d804478e26bde6f46e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Sun, 1 Oct 2023 16:19:20 -0500 Subject: [PATCH] feat: use if --- src/app/tools/session/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/tools/session/page.tsx b/src/app/tools/session/page.tsx index 83c471958..97023ac9a 100644 --- a/src/app/tools/session/page.tsx +++ b/src/app/tools/session/page.tsx @@ -89,7 +89,7 @@ export default function Page() { }} onBlur={(event) => { // TODO: remove this hack when https://github.com/radix-ui/primitives/issues/2193 is fixed - showSearchResults && event.target.focus(); + if (showSearchResults) event.target.focus(); }} onKeyDown={(event) => { if (event.key === 'Escape') {