Skip to content

Commit

Permalink
remove debug statement and reword logic
Browse files Browse the repository at this point in the history
  • Loading branch information
nl32 committed Oct 3, 2024
1 parent ea1284e commit 14cef9a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/components/searchBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}}
Expand Down

0 comments on commit 14cef9a

Please sign in to comment.