Skip to content

Commit

Permalink
Remove extra onChange, use replace instead of split and join (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
sigridge authored Oct 20, 2023
1 parent 0f818e4 commit b1c4730
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/ActiveFilters.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default function ActiveFilters() {
: "";
const filteredDepartments =
searchParams.get("filter") != ""
? searchParams.get("filter")?.split(",").join(", ")
? searchParams.get("filter")?.replace(",", ", ")
: "";
const filterSummaryText =
filteredDepartments != "" && currentNameSearch != ""
Expand Down
5 changes: 0 additions & 5 deletions frontend/src/components/FilterButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,6 @@ export default function FilterButton({
type="checkbox"
className="appearance-none border flex items-center border-primary_default m-[1px] mr-2 h-4 w-4 rounded-sm hover:bg-primary_l2 hover:border-primary_l2 checked:bg-primary_default"
checked={isButtonActive}
onChange={() => {
setCheckboxIsDisabled(true);
handleFilterClick();
setCheckboxTimeout();
}}
disabled={checkboxIsDisabled}
/>
<svg
Expand Down

0 comments on commit b1c4730

Please sign in to comment.