mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-29 16:07:40 +01:00
Use peak debugging tech #2
This commit is contained in:
parent
fb8b8f1a9e
commit
883503dab3
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ export function NextEpisodeButton(props: {
|
|||
}, [setDirectMeta, nextEp, meta, props, setShouldStartFromBeginning]);
|
||||
|
||||
useEffect(() => {
|
||||
if (time >= duration && meta && nextEp) {
|
||||
if (time === duration && meta && nextEp) {
|
||||
loadNextEpisode();
|
||||
}
|
||||
}, [time, duration, meta, nextEp, loadNextEpisode]);
|
||||
|
|
Loading…
Reference in a new issue