Skip to content

Commit

Permalink
[PAY-2815] Show unlocked icon if dm content is purchased (#8303)
Browse files Browse the repository at this point in the history
  • Loading branch information
amendelsohn authored May 2, 2024
1 parent 722e933 commit b9c042a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion packages/web/src/components/track/mobile/PlaylistTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,11 @@ const renderLockedContent = ({
variant
}: LockedOrPlaysContentProps) => {
if (isStreamGated && streamConditions && !isOwner) {
if (lockedContentType === 'premium' && variant === 'readonly') {
if (
!hasStreamAccess &&
lockedContentType === 'premium' &&
variant === 'readonly'
) {
return (
<GatedConditionsPill
streamConditions={streamConditions}
Expand Down
6 changes: 5 additions & 1 deletion packages/web/src/components/track/mobile/TrackTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,11 @@ const renderLockedContentOrPlayCount = ({
lockedContentType
}: LockedOrPlaysContentProps) => {
if (isStreamGated && streamConditions && !isOwner) {
if (lockedContentType === 'premium' && variant === 'readonly') {
if (
!hasStreamAccess &&
lockedContentType === 'premium' &&
variant === 'readonly'
) {
return (
<GatedConditionsPill
streamConditions={streamConditions}
Expand Down

0 comments on commit b9c042a

Please sign in to comment.