mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-18 21:33:35 -05:00
feat(DNDWhilePlaying): remove extra let
This commit is contained in:
parent
8f629c3d4f
commit
2fb4fca576
1 changed files with 1 additions and 2 deletions
|
@ -13,11 +13,10 @@ const updateAsync = findByCodeLazy("updateAsync");
|
||||||
|
|
||||||
async function runningGamesChange(event) {
|
async function runningGamesChange(event) {
|
||||||
const { games } = event;
|
const { games } = event;
|
||||||
let status;
|
|
||||||
let savedStatus;
|
let savedStatus;
|
||||||
if (games.length > 0) {
|
if (games.length > 0) {
|
||||||
const currentUser = UserStore.getCurrentUser();
|
const currentUser = UserStore.getCurrentUser();
|
||||||
status = PresenceStore.getStatus(currentUser.id);
|
const status = PresenceStore.getStatus(currentUser.id);
|
||||||
savedStatus = status;
|
savedStatus = status;
|
||||||
if (status === "invisible") return;
|
if (status === "invisible") return;
|
||||||
if (status !== "dnd") updateAsync("dnd");
|
if (status !== "dnd") updateAsync("dnd");
|
||||||
|
|
Loading…
Reference in a new issue