I'm trying to filter some data by their category id. Right now I can filter by category with value: 1. What I am trying to achieve is when the button is clicked again, it should clear the filter. Here is the code below:

```js
const onPress = () => {
    const filteredResults = results.filter((result) =>{
        return result.category === 1;
    });
    setResults(filteredResults);
};

```

The button:

```js
<Button onPress={() =>{onPress()}}>Lajme</Button>

```

How can I implement this function in the same button:

```js
const clearFilter = () => {
    const filteredResults = results
    setResults(filteredResults);
};

```