fix(webcam): conditional hook call
This commit is contained in:
parent
a17ee9dd4f
commit
e5fbc5469d
@ -233,7 +233,7 @@ export const useMyPageSize = () => {
|
||||
return size ?? 0;
|
||||
};
|
||||
|
||||
export const useIsPaginationEnabled = (paginationEnabled: boolean) => paginationEnabled && useMyPageSize() > 0;
|
||||
export const useIsPaginationEnabled = (paginationEnabled: boolean) => useMyPageSize() > 0 && paginationEnabled;
|
||||
|
||||
export const useStreams = () => {
|
||||
const videoStreams = useReactiveVar(streams);
|
||||
|
Loading…
Reference in New Issue
Block a user