Use peak debugging tech #3

This commit is contained in:
Cooper Ransom 2024-03-24 14:13:39 -04:00
parent 883503dab3
commit 566f7e921d
1 changed files with 2 additions and 2 deletions

View File

@ -81,10 +81,10 @@ export function NextEpisodeButton(props: {
}, [setDirectMeta, nextEp, meta, props, setShouldStartFromBeginning]);
useEffect(() => {
if (time === duration && meta && nextEp) {
if (time === duration && showingState === "always") {
loadNextEpisode();
}
}, [time, duration, meta, nextEp, loadNextEpisode]);
}, [time, duration, showingState, loadNextEpisode]);
const startCurrentEpisodeFromBeginning = useCallback(() => {
if (!meta || !meta.episode) return;