diff options
author | Vendicated <vendicated@riseup.net> | 2023-05-02 03:11:40 +0200 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2023-05-02 03:11:40 +0200 |
commit | 0d665b7e0bbe4f2b8ee1aa7b28b8476eb75f278e (patch) | |
tree | 4037ed532f9897e18976efc6eb06a52af7cc12f6 /src/plugins | |
parent | d94b28fb8ee43fe21b59ea61eb3700a6006226ec (diff) | |
download | Vencord-0d665b7e0bbe4f2b8ee1aa7b28b8476eb75f278e.tar.gz Vencord-0d665b7e0bbe4f2b8ee1aa7b28b8476eb75f278e.tar.bz2 Vencord-0d665b7e0bbe4f2b8ee1aa7b28b8476eb75f278e.zip |
Badge duplication glitch was too good to be true
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/apiBadges.tsx | 4 |
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"; |