We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03a098e commit 06a19f6Copy full SHA for 06a19f6
src/components/ListenToPlayer/index.tsx
@@ -120,6 +120,9 @@ const ListenToPlayer = ({ slug }: { slug: string }) => {
120
}
121
}, [playbackSpeed, sound])
122
123
+ // Only show the player if the locale is English and there is a playlist, renders null early
124
+ if (!playlist.length || index === -1 || locale !== "en") return null
125
+
126
const handlePlayPause = () => {
127
if (!sound) return
128
@@ -209,10 +212,6 @@ const ListenToPlayer = ({ slug }: { slug: string }) => {
209
212
})
210
213
211
214
- if (!playlist.length || index === -1) return null
-
- if (locale !== "en") return null
215
216
return (
217
<>
218
<TopOfPagePlayer
0 commit comments