Fix for video stories not playing
This commit is contained in:
parent
4912e5a6da
commit
622f61903b
1 changed files with 4 additions and 0 deletions
|
@ -265,6 +265,10 @@ export const StoryViewer = ({
|
||||||
// We need to be careful about this effect refreshing, it should only run
|
// We need to be careful about this effect refreshing, it should only run
|
||||||
// every time a story changes or its duration changes.
|
// every time a story changes or its duration changes.
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
if (!storyDuration) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
strictAssert(
|
strictAssert(
|
||||||
progressBarRef.current != null,
|
progressBarRef.current != null,
|
||||||
"progressBarRef can't be null"
|
"progressBarRef can't be null"
|
||||||
|
|
Loading…
Reference in a new issue