Skip to content

Commit

Permalink
fix: geo error never showing
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristiaanScheermeijer committed Dec 4, 2024
1 parent c73e205 commit 32cd6d1
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,14 @@ const PlayerContainer: React.FC<Props> = ({

const handlePlaylistItemCallback = usePlaylistItemCallback(liveStartDateTime, liveEndDateTime);

if (!playableItem || isLoading || isAdsLoading) {
return <LoadingOverlay inline />;
}

if (error instanceof Error && error.message === 'access blocked') {
return <PlayerError error={PlayerErrorState.GEO_BLOCKED} />;
}

if (!playableItem || isLoading || isAdsLoading) {
return <LoadingOverlay inline />;
}

return (
<Player
feedId={feedId}
Expand Down

0 comments on commit 32cd6d1

Please sign in to comment.