Skip to content

Commit

Permalink
feat: add check
Browse files Browse the repository at this point in the history
  • Loading branch information
CarinaDraganJW committed May 23, 2023
1 parent e34afe4 commit 63ac098
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useOttAnalytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const useOttAnalytics = (item?: PlaylistItem, feedId: string = '') => {
const user = useAccountStore((state) => state.user);

// ott app user id (oaid)
const oaid: number | undefined = Number(user?.id);
const oaid: number | undefined = user?.id ? Number(user?.id) : undefined;

const [player, setPlayer] = useState<jwplayer.JWPlayer | null>(null);

Expand Down

0 comments on commit 63ac098

Please sign in to comment.