mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-20 14:37:43 +01:00
Use peak debugging tech #3
This commit is contained in:
parent
883503dab3
commit
566f7e921d
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue