From 75e9be12e75649a994d7299ac5e3425dbfecbd0c Mon Sep 17 00:00:00 2001 From: Supertiger Date: Tue, 2 Jan 2024 16:56:32 +0000 Subject: [PATCH] fix: :bug: Unable to attempt to join a banned server second time in explore tab --- src/components/explore/ExploreServers.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/explore/ExploreServers.tsx b/src/components/explore/ExploreServers.tsx index ae5ea1e7..2991cdc5 100644 --- a/src/components/explore/ExploreServers.tsx +++ b/src/components/explore/ExploreServers.tsx @@ -166,12 +166,13 @@ function PublicServerItem(props: { publicServer: RawPublicServer, update: (newSe const cacheServer = () => servers.get(server.id); - const joinServerClick = () => { + const joinServerClick = async () => { if (joinClicked()) return; setJoinClicked(true); - joinPublicServer(props.publicServer.serverId).catch((err) => { + await joinPublicServer(props.publicServer.serverId).catch((err) => { alert(err.message) }) + setJoinClicked(false) } const bumpClick = () => {