mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-20 23:12:13 +00:00
fix(StreamsList): hide Install addons button if episode is upcoming
This commit is contained in:
parent
39f168a34c
commit
538e462b12
1 changed files with 2 additions and 2 deletions
|
|
@ -26,8 +26,8 @@ const StreamsList = ({ className, video, onEpisodeSearch, ...props }) => {
|
|||
setSelectedAddon(event.value);
|
||||
}, [platform]);
|
||||
const showInstallAddonsButton = React.useMemo(() => {
|
||||
return !profile || profile.auth === null || profile.auth?.user?.isNewUser === true;
|
||||
}, [profile]);
|
||||
return !profile || profile.auth === null || profile.auth?.user?.isNewUser === true && !video?.upcoming;
|
||||
}, [profile, video]);
|
||||
const backButtonOnClick = React.useCallback(() => {
|
||||
if (video.deepLinks && typeof video.deepLinks.metaDetailsVideos === 'string') {
|
||||
window.location.replace(video.deepLinks.metaDetailsVideos + (
|
||||
|
|
|
|||
Loading…
Reference in a new issue