From af454cfdf64fea45aa6bdcf19e33ec693005fe3d Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Mon, 18 Dec 2023 11:59:31 -0500 Subject: [PATCH] close all modals on guild join --- src/components/modals/JoinServerModal.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/modals/JoinServerModal.tsx b/src/components/modals/JoinServerModal.tsx index 175d5a1..67351e7 100644 --- a/src/components/modals/JoinServerModal.tsx +++ b/src/components/modals/JoinServerModal.tsx @@ -39,8 +39,7 @@ export function JoinServerModal({ ...props }: ModalProps<"join_server">) { .post(Routes.invite(code)) .then((r) => { navigate(`/channels/${r.guild_id}/${r.channel_id}`); - // modalController.closeAll(); - // TODO: + modalController.closeAll(); }) .catch((r) => { if ("message" in r) {