fix(Player): do not show next video popup if nextVideo is null

This commit is contained in:
Tim 2022-11-28 12:00:38 +01:00
parent e8f3291c34
commit 166fde9090

View file

@ -630,7 +630,7 @@ const Player = ({ urlParams, queryParams }) => {
onMouseOver={onBarMouseMove}
/>
{
nextVideoPopupOpen ?
player.nextVideo !== null && nextVideoPopupOpen ?
<NextVideoPopup
className={classnames(styles['layer'], styles['menu-layer'])}
metaItem={player.metaItem !== null && player.metaItem.type === 'Ready' ? player.metaItem.content : null}