From 25753e5f17a23418712dee30be02b1907ad4d937 Mon Sep 17 00:00:00 2001 From: Jas Singh Date: Sun, 27 Oct 2024 08:18:44 -0700 Subject: [PATCH] Fix foundPlayer not found crash. (#383) --- modules/menus/media/components/timebar/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/menus/media/components/timebar/index.ts b/modules/menus/media/components/timebar/index.ts index 0acf62d..06b73ee 100644 --- a/modules/menus/media/components/timebar/index.ts +++ b/modules/menus/media/components/timebar/index.ts @@ -26,7 +26,7 @@ const Bar = (): BoxWidget => { self.poll(1000, () => { const foundPlayer = getPlayerInfo(); - if (foundPlayer.play_back_status === 'Playing') { + if (foundPlayer?.play_back_status === 'Playing') { update(self, foundPlayer); updateTooltip(self, foundPlayer); }