From 227a2e9d18093df41f32a14ba8a7d3d5eeeb71cc Mon Sep 17 00:00:00 2001 From: Mike van Veenhuijzen Date: Thu, 18 Jul 2024 13:43:26 +0200 Subject: [PATCH] chore: loading state based on or-condition --- packages/hooks-react/src/useProtectedMedia.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/hooks-react/src/useProtectedMedia.ts b/packages/hooks-react/src/useProtectedMedia.ts index d3f619444..c75649b95 100644 --- a/packages/hooks-react/src/useProtectedMedia.ts +++ b/packages/hooks-react/src/useProtectedMedia.ts @@ -26,6 +26,6 @@ export default function useProtectedMedia(item: PlaylistItem) { return { ...contentProtectionQuery, isGeoBlocked, - isLoading: contentProtectionQuery.isLoading && isLoading, + isLoading: contentProtectionQuery.isLoading || isLoading, }; }