From fb18e169fd9d7499f214906512f0cdcdef61b2d7 Mon Sep 17 00:00:00 2001 From: lashman Date: Tue, 21 Apr 2026 21:36:04 +0300 Subject: [PATCH] ts fix --- src/components/player/SubtitleOverlay.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/player/SubtitleOverlay.tsx b/src/components/player/SubtitleOverlay.tsx index 9eda558..49422e1 100644 --- a/src/components/player/SubtitleOverlay.tsx +++ b/src/components/player/SubtitleOverlay.tsx @@ -177,6 +177,7 @@ export default function SubtitleOverlay({ playerRef, subtitleUrl }: Props) { if (!video) return function update() { + if (!video) return const { top: fitTop, bottom: fitBottom } = getVideoFitOffsets(video) if (subtitlePosition === 'bottom') { setOffset(Math.max(128, fitBottom + 32))