Badge duplication glitch was too good to be true

This commit is contained in:
Vendicated 2023-05-02 03:11:40 +02:00
parent d94b28fb8e
commit 0d665b7e0b
No known key found for this signature in database
GPG key ID: A1DC0CFB5615D905

View file

@ -47,9 +47,11 @@ const ContributorBadge: ProfileBadge = {
link: "https://github.com/Vendicated/Vencord"
};
const DonorBadges = {} as Record<string, Pick<ProfileBadge, "image" | "description">[]>;
let DonorBadges = {} as Record<string, Pick<ProfileBadge, "image" | "description">[]>;
async function loadBadges(noCache = false) {
DonorBadges = {};
const init = {} as RequestInit;
if (noCache)
init.cache = "no-cache";