Skip to content

Commit

Permalink
fix fp search clear input
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-babylonlabs committed Dec 2, 2024
1 parent 8a39441 commit 1d777b9
Showing 1 changed file with 1 addition and 3 deletions.
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 1d777b9

Please sign in to comment.