From 602aa32ff0f79cf01b2aea5d08c2e00df31881c3 Mon Sep 17 00:00:00 2001 From: Roland Date: Fri, 28 Oct 2022 08:25:26 -0600 Subject: [PATCH] Comparing video id's as numbers. --- app/src/hooks/customHooks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);