🚑 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 { useMutualGuildsStore } from "@/stores/mutualGuilds";
|
||||||
import { storeToRefs } from "pinia";
|
import { storeToRefs } from "pinia";
|
||||||
import { onBeforeMount } from "vue";
|
import { onBeforeMount } from "vue";
|
||||||
import {
|
import { useRouter, type RouteLocationRaw } from "vue-router";
|
||||||
useRouter,
|
|
||||||
type RouteLocation,
|
|
||||||
type RouteLocationRaw,
|
|
||||||
} from "vue-router";
|
|
||||||
|
|
||||||
const inviteLinkStore = useInviteLinkStore();
|
const inviteLinkStore = useInviteLinkStore();
|
||||||
|
|
||||||
|
@ -22,12 +22,14 @@ function getMutualGuilds(): Promise<Guild[]> {
|
|||||||
.catch((reason) => {
|
.catch((reason) => {
|
||||||
console.error(`Fail to get mutal guilds !`);
|
console.error(`Fail to get mutal guilds !`);
|
||||||
console.log(reason);
|
console.log(reason);
|
||||||
|
if (reason?.response.status != 401) {
|
||||||
const eventQueuStore = useEventQueuStore();
|
const eventQueuStore = useEventQueuStore();
|
||||||
eventQueuStore.push({
|
eventQueuStore.push({
|
||||||
uuid: undefined,
|
uuid: undefined,
|
||||||
type: "error",
|
type: "error",
|
||||||
text: "Fail to retrive guilds !",
|
text: "Fail to retrive guilds !",
|
||||||
});
|
});
|
||||||
|
}
|
||||||
reject(reason);
|
reject(reason);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user