Skip to content

Commit

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

// oaid (Ott App User ID) for analytics
const userId = Number(user?.id);
const isLoggedIn = !!userId;
const oaid: number | undefined = isLoggedIn ? userId : undefined;
const oaid: number | undefined = Number(user?.id);

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

Expand Down

0 comments on commit d64b3ad

Please sign in to comment.