diff --git a/src/components/TodoFilter/TodoFilter.tsx b/src/components/TodoFilter/TodoFilter.tsx index 4fbf31281..9a9ca8c0a 100644 --- a/src/components/TodoFilter/TodoFilter.tsx +++ b/src/components/TodoFilter/TodoFilter.tsx @@ -16,6 +16,10 @@ export const TodoFilter: React.FC = () => { dispatch(setQuery(value.target.value)); }; + const resetQuery = () => { + dispatch(setQuery('')); + }; + return (