From ea5c69e11b2758df28f881f9110ca5d4a5d41211 Mon Sep 17 00:00:00 2001
From: eug-vs <eug-vs@keemail.me>
Date: Sat, 24 Apr 2021 19:03:35 +0300
Subject: fix: reset filters correctly

---
 src/lib/ServiceFilters.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/lib/ServiceFilters.tsx')

diff --git a/src/lib/ServiceFilters.tsx b/src/lib/ServiceFilters.tsx
index b3cfae9..a2c645b 100644
--- a/src/lib/ServiceFilters.tsx
+++ b/src/lib/ServiceFilters.tsx
@@ -44,7 +44,7 @@ const ServiceFilters: React.FC = () => {
     setQuery(updatedQuery);
   };
 
-  const resetFilters = () => history.push(service.route);
+  const resetFilters = () => setQuery({});
 
   return (
     <div className="mr-6 flex items-center">
-- 
cgit v1.2.3

