Comparing video id's as numbers.

This commit is contained in:
Roland 2022-10-28 08:25:26 -06:00
parent b163b60837
commit 602aa32ff0
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93

View file

@ -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);