chore(Player): lint

This commit is contained in:
Timothy Z. 2025-05-02 19:44:55 +03:00
parent f3a7ef5978
commit 3985c88346

View file

@ -123,11 +123,13 @@ const Player = ({ urlParams, queryParams }) => {
ended();
if (player.nextVideo !== null) {
onNextVideoRequested();
nextVideo();
const deepLinks = player.nextVideo.deepLinks;
handleNextVideoNavigation(deepLinks);
} else {
window.history.back();
}
}, [player.nextVideo, onNextVideoRequested]);
}, [player.nextVideo, nextVideo, handleNextVideoNavigation]);
const onError = React.useCallback((error) => {
console.error('Player', error);