diff --git a/app/src/hooks/customHooks.js b/app/src/hooks/customHooks.js index b50492e7..ff379a69 100644 --- a/app/src/hooks/customHooks.js +++ b/app/src/hooks/customHooks.js @@ -266,7 +266,7 @@ export const useVideo = (videoId) => { const [nextFile, setNextFile] = useState(null); const fetchVideo = async () => { - if (videoId && videoFile && videoFile.video.id !== videoId) { + if (videoId && videoFile && Number(videoFile.video.id) !== Number(videoId)) { // Video is changing. Clear the old video before fetching. setVideoFile(null); setPrevFile(null);