From 14cef9abebd78db60968c5a1d6367d1f6b2fb209 Mon Sep 17 00:00:00 2001 From: Ethan Bickel Date: Thu, 3 Oct 2024 13:30:55 -0500 Subject: [PATCH] remove debug statement and reword logic --- src/components/searchBar/index.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/components/searchBar/index.tsx b/src/components/searchBar/index.tsx index cd90c59f..228aeb96 100644 --- a/src/components/searchBar/index.tsx +++ b/src/components/searchBar/index.tsx @@ -18,11 +18,8 @@ export const SearchBar = (props: SearchBarProps) => { {...props} type="text" className={`h-10 w-full rounded-full border pl-10 ${submitButton ? 'pr-[38px]' : 'pr-3'} focus:outline-none ${props.className}`} - onSubmit={() => { - console.log('howdy from submit'); - }} onKeyDown={(e) => { - if (e.key === 'Enter' && submitLogic) { + if (e.key === 'Enter' && typeof submitLogic !== 'undefined') { submitLogic(); } }}