Skip to content

Commit

Permalink
fix: clear query if empty
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasgriffintn committed Aug 25, 2024
1 parent d6439c0 commit 3ef8674
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/web/app/routes/_index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ export default function Index() {
} else {
setHasSearched(false);
setIsIntroVisible(true);
setQuery('');
submit({ query: '' });
}
},
[submit]
Expand Down

0 comments on commit 3ef8674

Please sign in to comment.