🚑 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);
|
||||||
const eventQueuStore = useEventQueuStore();
|
if (reason?.response.status != 401) {
|
||||||
eventQueuStore.push({
|
const eventQueuStore = useEventQueuStore();
|
||||||
uuid: undefined,
|
eventQueuStore.push({
|
||||||
type: "error",
|
uuid: undefined,
|
||||||
text: "Fail to retrive guilds !",
|
type: "error",
|
||||||
});
|
text: "Fail to retrive guilds !",
|
||||||
|
});
|
||||||
|
}
|
||||||
reject(reason);
|
reject(reason);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user