From 0ba61b1c7ab4fc261d21fd5c76da47bee4d7aa4b Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Fri, 14 Feb 2025 21:29:40 -0500 Subject: [PATCH] Fix Crashing --- src/equicordplugins/customUserColors/index.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/equicordplugins/customUserColors/index.tsx b/src/equicordplugins/customUserColors/index.tsx index 24b51d12..bf64d5ce 100644 --- a/src/equicordplugins/customUserColors/index.tsx +++ b/src/equicordplugins/customUserColors/index.tsx @@ -47,7 +47,7 @@ const userContextMenuPatch: NavContextMenuPatchCallback = (children, { user }: { }; export function getCustomColorString(userId: string, withHash?: boolean): string | undefined { - if (!colors[userId] || !Settings.plugins.customUserColors.enabled) + if (!colors[userId] || !Settings.plugins.CustomUserColors.enabled) return; if (withHash) @@ -110,8 +110,7 @@ export default definePlugin({ colorIfServer(a: any): string | undefined { const roleColor = a.author.colorString; - if (a.channel.guild_id && !settings.store.colorInServers) - return roleColor; + if (a.channel.guild_id && !settings.store.colorInServers) return roleColor; const color = getCustomColorString(a.message.author.id, true); return color ?? roleColor;