Skip to content

Commit

Permalink
Fix type miss match
Browse files Browse the repository at this point in the history
  • Loading branch information
ChloeZacharias committed Jun 15, 2024
1 parent e33acb7 commit 04231dd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/frontend/src/components/filters.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ const Filters = ({ onFilterChange }: FiltersProps) => {

const handleMinPriceChange = (event: ChangeEvent<HTMLInputElement>) => {
setMinPrice(
event.target.value === "" ? null : parseFloat(event.target.value),
event.target.value === "" ? null : parseFloat(event.target.value)
);
};

const handleMaxPriceChange = (event: ChangeEvent<HTMLInputElement>) => {
setMaxPrice(
event.target.value === "" ? null : parseFloat(event.target.value),
event.target.value === "" ? null : parseFloat(event.target.value)
);
};

Expand Down Expand Up @@ -77,8 +77,8 @@ const Filters = ({ onFilterChange }: FiltersProps) => {
setStatus("");
setType("LISTING");
onFilterChange({
minPrice: undefined,
maxPrice: undefined,
minPrice: null,
maxPrice: null,
status: "",
searchType: "",
});
Expand Down

0 comments on commit 04231dd

Please sign in to comment.