🚑 Fix double message
This commit is contained in:
parent
f6baab77ed
commit
4ca92aae06
@ -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();
|
||||
|
||||
|
@ -22,12 +22,14 @@ function getMutualGuilds(): Promise<Guild[]> {
|
||||
.catch((reason) => {
|
||||
console.error(`Fail to get mutal guilds !`);
|
||||
console.log(reason);
|
||||
if (reason?.response.status != 401) {
|
||||
const eventQueuStore = useEventQueuStore();
|
||||
eventQueuStore.push({
|
||||
uuid: undefined,
|
||||
type: "error",
|
||||
text: "Fail to retrive guilds !",
|
||||
});
|
||||
}
|
||||
reject(reason);
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user