From 19020d2131e62ff1673cf7364743e67aec150c45 Mon Sep 17 00:00:00 2001 From: Ajay Date: Thu, 20 Mar 2025 01:37:08 -0400 Subject: [PATCH] Try to fix NaN showing in skip popup --- src/components/SkipNoticeComponent.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/SkipNoticeComponent.tsx b/src/components/SkipNoticeComponent.tsx index 24a70fa7..9c5f2901 100644 --- a/src/components/SkipNoticeComponent.tsx +++ b/src/components/SkipNoticeComponent.tsx @@ -704,7 +704,7 @@ class SkipNoticeComponent extends React.Component number { return () => { const sponsorTime = this.segments[index]; - const duration = Math.round((sponsorTime.segment[1] - getCurrentTime()) * (1 / (getVideo()?.playbackRate ?? 1))); + const duration = Math.round((sponsorTime.segment[1] - (getCurrentTime() ?? 0)) * (1 / (getVideo()?.playbackRate ?? 1))); return Math.max(duration, Config.config.skipNoticeDuration); };