mirror of
https://git.vectorsigma.ru/public/tubearchivist.git
synced 2026-08-09 01:49:24 +00:00
Refac APIClient to return data, error and status as object
This commit is contained in:
@@ -46,7 +46,12 @@ async function castVideoProgress(
|
||||
currentProgress: currentTime,
|
||||
});
|
||||
|
||||
if (videoProgressResponse.watched && video.player.watched !== videoProgressResponse.watched) {
|
||||
const { data: videoProgressResponseData } = videoProgressResponse ?? {};
|
||||
|
||||
if (
|
||||
videoProgressResponseData?.watched &&
|
||||
video.player.watched !== videoProgressResponseData.watched
|
||||
) {
|
||||
onWatchStateChanged?.(true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user