@@ -9,7 +9,7 @@ import { useSelector } from 'react-redux'
99
1010import { LockedStatusBadge , Text } from 'app/components/core'
1111import { useDrawer } from 'app/hooks/useDrawer'
12- import { useNavigation } from 'app/hooks/useNavigation '
12+ import { useAppTabNavigation } from 'app/screens/app-screen '
1313import { makeStyles } from 'app/styles'
1414import type { GestureResponderHandler } from 'app/types/gesture'
1515
@@ -51,7 +51,7 @@ export const TrackInfo = (props: TrackInfoProps) => {
5151 const styles = useStyles ( )
5252 const { hasStreamAccess } = useGatedContentAccess ( track )
5353 const { onClose } = useDrawer ( 'NowPlaying' )
54- const navigation = useNavigation ( )
54+ const navigation = useAppTabNavigation ( )
5555 const isPreviewing = useSelector ( getPreviewing )
5656 const shouldShowPreviewLock =
5757 isPreviewing ||
@@ -60,8 +60,10 @@ export const TrackInfo = (props: TrackInfoProps) => {
6060 ! hasStreamAccess )
6161
6262 const handlePressArtist = useCallback ( ( ) => {
63- onClose ( )
64- navigation ?. push ( 'Profile' , { id : user ?. user_id } )
63+ if ( user ?. user_id ) {
64+ onClose ( )
65+ navigation ?. push ( 'Profile' , { id : user . user_id } )
66+ }
6567 } , [ navigation , user ?. user_id , onClose ] )
6668
6769 if ( ! user || ! track ) return null
0 commit comments