Skip to content

Commit

Permalink
debounce function does not return anything
Browse files Browse the repository at this point in the history
  • Loading branch information
anagperal committed Jul 4, 2024
1 parent d3e0244 commit b9978b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webapp/components/search-input/SearchInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function debounce<F extends (...args: any[]) => any>(func: F, delay: number) {
timeout = setTimeout(() => func(...args), delay);
};

return debounced as (...args: Parameters<F>) => ReturnType<F>;
return debounced;
}

const Container = styled.div`
Expand Down

0 comments on commit b9978b5

Please sign in to comment.