mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-01-15 23:59:08 +00:00
fix: invalid query
This commit is contained in:
@@ -118,8 +118,15 @@ export const CurrentlyPlayingBar: React.FC = () => {
|
||||
|
||||
const onProgress = useCallback(
|
||||
({ currentTime }: OnProgressData) => {
|
||||
if (!sessionData?.PlaySessionId || !api || !currentlyPlaying?.item.Id)
|
||||
if (
|
||||
!sessionData?.PlaySessionId ||
|
||||
!api ||
|
||||
!currentlyPlaying?.item.Id ||
|
||||
!user?.Id ||
|
||||
!currentTime
|
||||
) {
|
||||
return;
|
||||
}
|
||||
const newProgress = currentTime * 10000000;
|
||||
setProgress(newProgress);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user