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(); } }}