mirror of
https://github.com/spacebarchat/client.git
synced 2024-11-22 02:12:38 +01:00
close all modals on guild join
This commit is contained in:
parent
85ee16e7b9
commit
af454cfdf6
@ -39,8 +39,7 @@ export function JoinServerModal({ ...props }: ModalProps<"join_server">) {
|
||||
.post<never, { guild_id: string; channel_id: string }>(Routes.invite(code))
|
||||
.then((r) => {
|
||||
navigate(`/channels/${r.guild_id}/${r.channel_id}`);
|
||||
// modalController.closeAll();
|
||||
// TODO:
|
||||
modalController.closeAll();
|
||||
})
|
||||
.catch((r) => {
|
||||
if ("message" in r) {
|
||||
|
Loading…
Reference in New Issue
Block a user