File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
packages/mobile/src/components/track-list Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -237,9 +237,9 @@ const TrackListItemComponent = (props: TrackListItemComponentProps) => {
237
237
const isPlaying = useSelector ( ( state ) => {
238
238
return isActive && getPlaying ( state )
239
239
} )
240
+ const isPurchaseGated = isContentUSDCPurchaseGated ( streamConditions )
240
241
// Unlike other gated tracks, USDC purchase gated tracks are playable because they have previews
241
- const isPlayable =
242
- ! isDeleted && ( ! isLocked || isContentUSDCPurchaseGated ( streamConditions ) )
242
+ const isPlayable = ! isDeleted && ( ! isLocked || isPurchaseGated )
243
243
244
244
const messages = getMessages ( { isDeleted } )
245
245
const styles = useStyles ( )
@@ -292,7 +292,7 @@ const TrackListItemComponent = (props: TrackListItemComponentProps) => {
292
292
? OverflowAction . UNREPOST
293
293
: OverflowAction . REPOST
294
294
: null ,
295
- ! isTrackOwner && isLocked && ! isDeleted
295
+ ! isTrackOwner && isLocked && isPurchaseGated && ! isDeleted
296
296
? OverflowAction . PURCHASE_TRACK
297
297
: null ,
298
298
isTrackOwner && ! ddexApp ? OverflowAction . ADD_TO_ALBUM : null ,
@@ -334,7 +334,8 @@ const TrackListItemComponent = (props: TrackListItemComponentProps) => {
334
334
isContextPlaylistOwner ,
335
335
dispatch ,
336
336
track_id ,
337
- contextPlaylistId
337
+ contextPlaylistId ,
338
+ isPurchaseGated
338
339
] )
339
340
340
341
const handlePressOverflow = ( e : NativeSyntheticEvent < NativeTouchEvent > ) => {
You can’t perform that action at this time.
0 commit comments