Skip to content

Commit

Permalink
fix fp search clear input (#423)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-babylonlabs authored Dec 2, 2024
1 parent 8a39441 commit 54ea2e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "simple-staking",
"version": "0.3.13",
"version": "0.3.14",
"private": true,
"scripts": {
"dev": "next dev",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ export const FinalityProviderSearch: React.FC<FinalityProviderSearchProps> = ({
const debouncedSearchTerm = useDebounce(searchTerm, 300);

useEffect(() => {
if (debouncedSearchTerm) {
onSearch(debouncedSearchTerm);
}
onSearch(debouncedSearchTerm ?? "");
}, [debouncedSearchTerm, onSearch]);

const handleSearch = (e: React.ChangeEvent<HTMLInputElement>) => {
Expand Down

0 comments on commit 54ea2e9

Please sign in to comment.