filter does not show results when you search again React hooks

i’m trying to filter the data, but the problem is, it doesn’t show results when you search again. so any idea what’s wrong in my code. Thanks in advance

const results = users?.map(singleUser => {
    singleUser.websites = singleUser.websites.filter(network =>
      network.name.toLowerCase().includes(search.toLowerCase())
    );

    const items = singleUser[dataKey]?.map((listItem) => {
      return (
        <ListItem>
             <Highlighter
              searchWords={[search]}
              textToHighlight={items.name}
            />
        </ListItem>
      );
    });

    return (
      singleUser.networks.length !== 0 && (
        <Accordion>
          <section>
            <ListAccordionList>{items}</ListAccordionList>
          </AccordionDetails>
        </Accordion>
      )
    );
  });

  return (
    <Grid>
      {results}
    </Grid>
  );
}