🚑 Fix double message

This commit is contained in:
SebClem 2022-06-18 16:55:21 +02:00
parent f6baab77ed
commit 4ca92aae06
Signed by: sebclem
GPG Key ID: 5A4308F6A359EA50
2 changed files with 9 additions and 11 deletions

View File

@ -46,11 +46,7 @@ import { useInviteLinkStore } from "@/stores/inviteLink";
import { useMutualGuildsStore } from "@/stores/mutualGuilds";
import { storeToRefs } from "pinia";
import { onBeforeMount } from "vue";
import {
useRouter,
type RouteLocation,
type RouteLocationRaw,
} from "vue-router";
import { useRouter, type RouteLocationRaw } from "vue-router";
const inviteLinkStore = useInviteLinkStore();

View File

@ -22,12 +22,14 @@ function getMutualGuilds(): Promise<Guild[]> {
.catch((reason) => {
console.error(`Fail to get mutal guilds !`);
console.log(reason);
const eventQueuStore = useEventQueuStore();
eventQueuStore.push({
uuid: undefined,
type: "error",
text: "Fail to retrive guilds !",
});
if (reason?.response.status != 401) {
const eventQueuStore = useEventQueuStore();
eventQueuStore.push({
uuid: undefined,
type: "error",
text: "Fail to retrive guilds !",
});
}
reject(reason);
});
});