From 0d665b7e0bbe4f2b8ee1aa7b28b8476eb75f278e Mon Sep 17 00:00:00 2001 From: Vendicated Date: Tue, 2 May 2023 03:11:40 +0200 Subject: [PATCH] Badge duplication glitch was too good to be true --- src/plugins/apiBadges.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/apiBadges.tsx b/src/plugins/apiBadges.tsx index 48e9eb97..aaa1860f 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[]>; +let DonorBadges = {} as Record[]>; async function loadBadges(noCache = false) { + DonorBadges = {}; + const init = {} as RequestInit; if (noCache) init.cache = "no-cache";