diff --git a/src/equicordplugins/dndWhilePlaying/index.ts b/src/equicordplugins/dndWhilePlaying/index.ts index f598e191..646ca905 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");