From 90a53452e84ea199b8c952673c5de5bd95635630 Mon Sep 17 00:00:00 2001 From: Paul Makles Date: Mon, 10 Jan 2022 20:38:13 +0000 Subject: [PATCH] fix: ignore bot and server invites in layout paths --- src/mobx/stores/Layout.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mobx/stores/Layout.ts b/src/mobx/stores/Layout.ts index 68e6758b..14c551a5 100644 --- a/src/mobx/stores/Layout.ts +++ b/src/mobx/stores/Layout.ts @@ -169,6 +169,9 @@ export default class Layout implements Store, Persistent { * @param path Pathname */ @action setLastHomePath(path: string) { + if (path.startsWith("/bot")) return; + if (path.startsWith("/invite")) return; + this.lastHomePath = path; this.lastSection = "home"; }