aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2023-05-02 03:11:40 +0200
committerVendicated <vendicated@riseup.net>2023-05-02 03:11:40 +0200
commit0d665b7e0bbe4f2b8ee1aa7b28b8476eb75f278e (patch)
tree4037ed532f9897e18976efc6eb06a52af7cc12f6 /src
parentd94b28fb8ee43fe21b59ea61eb3700a6006226ec (diff)
downloadVencord-0d665b7e0bbe4f2b8ee1aa7b28b8476eb75f278e.tar.gz
Vencord-0d665b7e0bbe4f2b8ee1aa7b28b8476eb75f278e.tar.bz2
Vencord-0d665b7e0bbe4f2b8ee1aa7b28b8476eb75f278e.zip
Badge duplication glitch was too good to be true
Diffstat (limited to 'src')
-rw-r--r--src/plugins/apiBadges.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/apiBadges.tsx b/src/plugins/apiBadges.tsx
index 48e9eb9..aaa1860 100644
--- a/src/plugins/apiBadges.tsx
+++ b/src/plugins/apiBadges.tsx
@@ -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";