fix: fix again the thing above i cant be asked to write commit messages anymore

This commit is contained in:
Paul Makles 2022-01-04 15:07:46 +00:00
parent a09fbe685d
commit dbf681c2e9

View file

@ -45,7 +45,6 @@ function useEntries(
const [entries, setEntries] = useState<MemberListGroup[]>([]);
function sort(keys: string[]) {
defer(() => {
const categories: { [key: string]: [User, string][] } = {
online: [],
offline: [],
@ -156,13 +155,12 @@ function useEntries(
}
setEntries(entries);
});
}
useEffect(() => {
return autorun(() => sort(generateKeys()));
// eslint-disable-next-line
}, [generateKeys]);
}, []);
return entries;
}