fix(webcam): reduced code

This commit is contained in:
João Victor 2024-05-07 18:13:18 -03:00
parent 41d70b352a
commit 728c476504

View File

@ -271,11 +271,7 @@ export const useStreamUsers = (isGridEnabled: boolean) => {
logger.error(`Stream users subscription failed. name=${error.name}`, error);
}
if (data) {
setUsers(data.user);
} else {
setUsers([]);
}
setUsers(data ? data.user : []);
}, [data]);
useEffect(() => {