From 0d665b7e0bbe4f2b8ee1aa7b28b8476eb75f278e Mon Sep 17 00:00:00 2001
From: Vendicated <vendicated@riseup.net>
Date: Tue, 2 May 2023 03:11:40 +0200
Subject: Badge duplication glitch was too good to be true

---
 src/plugins/apiBadges.tsx | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'src/plugins/apiBadges.tsx')

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";
-- 
cgit 

