From eada6d00cded00369b6b0940d725d79e80361882 Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Fri, 19 Jul 2024 13:51:16 -0400 Subject: [PATCH] Final Fixes --- src/equicordplugins/statusWhilePlaying/index.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/equicordplugins/statusWhilePlaying/index.ts b/src/equicordplugins/statusWhilePlaying/index.ts index 8d52c4f1..1913ef4c 100644 --- a/src/equicordplugins/statusWhilePlaying/index.ts +++ b/src/equicordplugins/statusWhilePlaying/index.ts @@ -15,7 +15,7 @@ const updateAsync = findByCodeLazy("updateAsync", "status"); const settings = definePluginSettings({ statusToSet: { type: OptionType.SELECT, - description: "Status set while playing a game", + description: "Status to set while playing a game", options: [ { label: "Online", @@ -47,8 +47,7 @@ export default definePlugin({ runningGamesChange(event) { let savedStatus = ""; if (event.games.length > 0) { - const currentUser = UserStore.getCurrentUser(); - const status = PresenceStore.getStatus(currentUser.id); + const status = PresenceStore.getStatus(UserStore.getCurrentUser().id); savedStatus = status; updateAsync(settings.store.statusToSet); } else if (event.games.length === 0) {