From a8c308dbd008170c517a371910e0e4d6a5521554 Mon Sep 17 00:00:00 2001 From: SebClem Date: Thu, 30 Jun 2022 11:27:41 +0200 Subject: [PATCH] :hammer: Always fetch invite link --- src/components/Header/ServerListComponent.vue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/components/Header/ServerListComponent.vue b/src/components/Header/ServerListComponent.vue index 3621b07..0c39618 100644 --- a/src/components/Header/ServerListComponent.vue +++ b/src/components/Header/ServerListComponent.vue @@ -59,10 +59,8 @@ const router = useRouter(); const mutualGuildsStore = useMutualGuildsStore(); const { guilds, loaded } = storeToRefs(mutualGuildsStore); onBeforeMount(async () => { - if (!inviteLinkStore.isPresent) { - let inviteLink = await getInviteLink(); - inviteLinkStore.inviteLink = inviteLink.link; - } + let inviteLink = await getInviteLink(); + inviteLinkStore.inviteLink = inviteLink.link; }); function shouldBeDisabled(guild: Guild) {