From 2a6079e9e340de9c87f9467586649daf99f13cc6 Mon Sep 17 00:00:00 2001
From: thororen1234 <78185467+thororen1234@users.noreply.github.com>
Date: Mon, 29 Jul 2024 16:52:10 -0400
Subject: [PATCH] And Nyx was like badge stuff badge stuff oohhh lIke
---
src/equicordplugins/globalBadges/index.tsx | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/equicordplugins/globalBadges/index.tsx b/src/equicordplugins/globalBadges/index.tsx
index 6ae94aed..b429c227 100644
--- a/src/equicordplugins/globalBadges/index.tsx
+++ b/src/equicordplugins/globalBadges/index.tsx
@@ -101,6 +101,10 @@ const GlobalBadges = ({ userId }: { userId: string; }) => {
const cleanName = badge.name.replace(mod, "").trim();
const prefix = showPrefix() ? mod : "";
if (!badge.custom) badge.name = `${prefix} ${cleanName.charAt(0).toUpperCase() + cleanName.slice(1)}`;
+ if (badge.custom) {
+ if (cleanName.toLowerCase().includes(mod)) return;
+ else if (prefix) badge.name = `${cleanName} (${prefix})`.replaceAll(" ()", "");
+ }
globalBadges.push();
badgeModal.push();
});