1
0
Fork 0
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:
Cooper Ransom 2024-03-24 13:50:52 -04:00
parent fb8b8f1a9e
commit 883503dab3

View file

@ -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]);