diff --git a/src/components/Filters.jsx b/src/components/Filters.jsx index 8f584e8..9adc466 100644 --- a/src/components/Filters.jsx +++ b/src/components/Filters.jsx @@ -15,8 +15,9 @@ export default function Filters(props) { game.title.toLowerCase().includes(searchValue.toLowerCase()) ); handleChange(list); + } else { + handleChange(values); } - handleChange(values); }, [values, searchValue]); useEffect(() => {