Remove countdown on Lists

This commit is contained in:
saltrafael 2021-08-24 07:03:13 -03:00 committed by zeppi
parent 1124125578
commit 15aee9eb4e

View file

@ -88,6 +88,9 @@ function AutoplayCountdown(props: Props) {
// Update countdown timer.
React.useEffect(() => {
if (collectionId) {
doNavigate();
} else {
let interval;
if (!timerCanceled && nextRecommendedUri) {
if (isTimerPaused) {
@ -107,7 +110,8 @@ function AutoplayCountdown(props: Props) {
return () => {
clearInterval(interval);
};
}, [timer, doNavigate, navigateUrl, push, timerCanceled, isTimerPaused, nextRecommendedUri]);
}
}, [timer, doNavigate, navigateUrl, push, timerCanceled, isTimerPaused, nextRecommendedUri, collectionId]);
if (timerCanceled || !nextRecommendedUri) {
return null;