From 21c2d8204be8a0b0d589ecf57a4537aa7f04729e Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Sat, 23 Dec 2023 23:31:26 -0500 Subject: [PATCH] close modal stack on logout --- src/stores/AppStore.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/stores/AppStore.ts b/src/stores/AppStore.ts index 53e9367..40f56fa 100644 --- a/src/stores/AppStore.ts +++ b/src/stores/AppStore.ts @@ -1,6 +1,7 @@ import type { APIUser, Snowflake } from "@spacebarchat/spacebar-api-types/v9"; import { action, computed, makeAutoObservable, observable } from "mobx"; import secureLocalStorage from "react-secure-storage"; +import { modalController } from "../controllers/modals"; import Logger from "../utils/Logger"; import REST from "../utils/REST"; import { isTauri } from "../utils/Utils"; @@ -161,6 +162,7 @@ export default class AppStore { this.isAppLoading = false; this.isGatewayReady = true; secureLocalStorage.clear(); + modalController.closeAll(); } @action