fix(webcam): conditional hook call

This commit is contained in:
João Victor 2024-05-08 09:28:29 -03:00
parent a17ee9dd4f
commit e5fbc5469d

View File

@ -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);