Skip to content

Commit

Permalink
fix: not needed check
Browse files Browse the repository at this point in the history
  • Loading branch information
kiremitrov123 committed Mar 28, 2023
1 parent 4e03197 commit 6ea6574
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useContentProtection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const useContentProtection = <T>(
['token', type, id, params],
() => {
// if provider is not JWP
if (!!id && !!host && !!drmPolicyId) {
if (!!id && !!host) {
const { host, drmPolicyId } = signingConfig;
return getMediaToken(host, id, jwt, params, drmPolicyId);
}
Expand Down

0 comments on commit 6ea6574

Please sign in to comment.