Fix for video stories not playing

This commit is contained in:
Josh Perez 2022-10-18 20:18:36 -04:00 committed by GitHub
parent 4912e5a6da
commit 622f61903b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -265,6 +265,10 @@ export const StoryViewer = ({
// We need to be careful about this effect refreshing, it should only run
// every time a story changes or its duration changes.
useEffect(() => {
if (!storyDuration) {
return;
}
strictAssert(
progressBarRef.current != null,
"progressBarRef can't be null"