Skip to content

Commit 42e65b9

Browse files
committed
OV-382: * player
1 parent c8b79fb commit 42e65b9

File tree

1 file changed

+2
-2
lines changed
  • frontend/src/bundles/common/components/player

1 file changed

+2
-2
lines changed

frontend/src/bundles/common/components/player/player.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ const Player: React.FC<Properties> = ({ playerRef }) => {
3434
};
3535
}, [scenes, scripts]);
3636

37-
const durationInFrames = scenes.reduce(
38-
(sum, scene) => sum + scene.duration,
37+
const durationInFrames = scripts.reduce(
38+
(sum, script) => sum + Math.round(script.duration),
3939
0,
4040
);
4141

0 commit comments

Comments
 (0)