From 4ce6d67b95ad0f028f493d6248c75f4068ea5105 Mon Sep 17 00:00:00 2001 From: yellowsink Date: Fri, 13 Dec 2024 11:45:18 +0000 Subject: [PATCH] [lastfm] fix undefined issue. MAYBE this will fix the stupid tab open not connecting issue --- plugins/lastfm/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/lastfm/index.ts b/plugins/lastfm/index.ts index 786b134..f0e628b 100644 --- a/plugins/lastfm/index.ts +++ b/plugins/lastfm/index.ts @@ -92,7 +92,7 @@ const getScrobbleLastfm = async () => { const isSpotifyPlaying = () => { for (const activity of PresenceStore.getActivities( - UserStore.getCurrentUser().id, + UserStore.getCurrentUser()?.id, )) if ( activity?.type === ACTIVITY_TYPE_LISTENING &&