Skip to content

Commit

Permalink
Fix for video stories not playing
Browse files Browse the repository at this point in the history
Co-authored-by: Josh Perez <60019601+josh-signal@users.noreply.github.com>
  • Loading branch information
automated-signal and josh-signal committed Oct 19, 2022
1 parent 16ca36a commit 9ecb62b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ts/components/StoryViewer.tsx
Expand Up @@ -264,6 +264,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"
Expand Down

0 comments on commit 9ecb62b

Please sign in to comment.