RoleColorEverywhere: Fix Online/Offline

This commit is contained in:
Nuckyz 2024-11-17 20:42:15 -03:00
parent 5cf22113cf
commit cd61f4e744
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -214,9 +214,9 @@ export default definePlugin({
RoleGroupColor: ErrorBoundary.wrap(({ id, count, title, guildId, label }: { id: string; count: number; title: string; guildId: string; label: string; }) => { RoleGroupColor: ErrorBoundary.wrap(({ id, count, title, guildId, label }: { id: string; count: number; title: string; guildId: string; label: string; }) => {
const role = GuildStore.getRole(guildId, id); const role = GuildStore.getRole(guildId, id);
return role != null && ( return (
<span style={{ <span style={{
color: role.colorString, color: role?.colorString,
fontWeight: "unset", fontWeight: "unset",
letterSpacing: ".05em" letterSpacing: ".05em"
}}> }}>