mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-10 10:35:27 +00:00
fix: fix again the thing above i cant be asked to write commit messages anymore
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user