Skip to content

Commit 538e462

Browse files
committed
fix(StreamsList): hide Install addons button if episode is upcoming
1 parent 39f168a commit 538e462

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/routes/MetaDetails/StreamsList/StreamsList.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ const StreamsList = ({ className, video, onEpisodeSearch, ...props }) => {
2626
setSelectedAddon(event.value);
2727
}, [platform]);
2828
const showInstallAddonsButton = React.useMemo(() => {
29-
return !profile || profile.auth === null || profile.auth?.user?.isNewUser === true;
30-
}, [profile]);
29+
return !profile || profile.auth === null || profile.auth?.user?.isNewUser === true && !video?.upcoming;
30+
}, [profile, video]);
3131
const backButtonOnClick = React.useCallback(() => {
3232
if (video.deepLinks && typeof video.deepLinks.metaDetailsVideos === 'string') {
3333
window.location.replace(video.deepLinks.metaDetailsVideos + (

0 commit comments

Comments
 (0)