Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
238 B
1
Indexable
Never
useEffect(() => {
    let sortApplied = sortOptions.some(option => option.current);
    if (!sortApplied) {
      setSortApplied(false);
      props.setSortOptions([]);
    } else{
      setSortApplied(true);
    }

  }, [sortOptions])
  
Leave a Comment