feat(DNDWhilePlaying): remove extra let

This commit is contained in:
thororen 2024-05-05 21:50:11 -04:00
parent 8f629c3d4f
commit 2fb4fca576

View file

@ -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");