From 2fb4fca576590184769ba57f401bca4447c9fa5e Mon Sep 17 00:00:00 2001 From: thororen <78185467+thororen1234@users.noreply.github.com> Date: Sun, 5 May 2024 21:50:11 -0400 Subject: [PATCH] feat(DNDWhilePlaying): remove extra let --- src/equicordplugins/dndWhilePlaying/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/equicordplugins/dndWhilePlaying/index.ts b/src/equicordplugins/dndWhilePlaying/index.ts index f598e191d..646ca9052 100644 --- a/src/equicordplugins/dndWhilePlaying/index.ts +++ b/src/equicordplugins/dndWhilePlaying/index.ts @@ -13,11 +13,10 @@ const updateAsync = findByCodeLazy("updateAsync"); async function runningGamesChange(event) { const { games } = event; - let status; let savedStatus; if (games.length > 0) { const currentUser = UserStore.getCurrentUser(); - status = PresenceStore.getStatus(currentUser.id); + const status = PresenceStore.getStatus(currentUser.id); savedStatus = status; if (status === "invisible") return; if (status !== "dnd") updateAsync("dnd");