fix(webcam): reduced code
This commit is contained in:
parent
41d70b352a
commit
728c476504
@ -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(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user