Skip to content

Commit

Permalink
Update src/components/elements/displayFilter/index.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: Simon L <[email protected]>
  • Loading branch information
elad-n and simonlsk authored Sep 14, 2023
1 parent 372c928 commit 9cb4123
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/elements/displayFilter/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ export function DisplayFilter({ label, onChange, value }: DisplayFilterProps) {
const [show, setShow] = useState<boolean>(false);

const filterClicked = () => {
setShow(!show);
onChange(!show);
const currentShow = show;
setShow(!currentShow);
onChange(!currentShow);
};

useEffect(() => {
Expand Down

0 comments on commit 9cb4123

Please sign in to comment.