Skip to content

Commit

Permalink
fix: 🐛 Unable to attempt to join a banned server second time in explo…
Browse files Browse the repository at this point in the history
…re tab
  • Loading branch information
SupertigerDev committed Jan 2, 2024
1 parent 3e414e6 commit 75e9be1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/explore/ExploreServers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = () => {
Expand Down

0 comments on commit 75e9be1

Please sign in to comment.