From 04231dd47684a0c78ccb4381b24203605dc0d29e Mon Sep 17 00:00:00 2001 From: ChloeZacharias Date: Fri, 14 Jun 2024 20:49:04 -0700 Subject: [PATCH] Fix type miss match --- apps/frontend/src/components/filters.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/frontend/src/components/filters.tsx b/apps/frontend/src/components/filters.tsx index 12e4d408..d8cf7069 100644 --- a/apps/frontend/src/components/filters.tsx +++ b/apps/frontend/src/components/filters.tsx @@ -43,13 +43,13 @@ const Filters = ({ onFilterChange }: FiltersProps) => { const handleMinPriceChange = (event: ChangeEvent) => { setMinPrice( - event.target.value === "" ? null : parseFloat(event.target.value), + event.target.value === "" ? null : parseFloat(event.target.value) ); }; const handleMaxPriceChange = (event: ChangeEvent) => { setMaxPrice( - event.target.value === "" ? null : parseFloat(event.target.value), + event.target.value === "" ? null : parseFloat(event.target.value) ); }; @@ -77,8 +77,8 @@ const Filters = ({ onFilterChange }: FiltersProps) => { setStatus(""); setType("LISTING"); onFilterChange({ - minPrice: undefined, - maxPrice: undefined, + minPrice: null, + maxPrice: null, status: "", searchType: "", });