From 575d50807a3953b0bf8e2dd1c598304c01b35f0d Mon Sep 17 00:00:00 2001 From: Hampus Kraft Date: Sat, 21 Feb 2026 15:45:12 +0000 Subject: [PATCH] fix(app): accent colour not working --- fluxer_app/src/utils/AccentColorUtils.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fluxer_app/src/utils/AccentColorUtils.tsx b/fluxer_app/src/utils/AccentColorUtils.tsx index 8f5f5254..27ee2823 100644 --- a/fluxer_app/src/utils/AccentColorUtils.tsx +++ b/fluxer_app/src/utils/AccentColorUtils.tsx @@ -41,15 +41,15 @@ export function getUserAccentColor( profileAccentColor?: RawAccentColor, fallback = DEFAULT_ACCENT_COLOR, ): string { - if (user && typeof user.avatarColor === 'number') { - return ColorUtils.int2hex(user.avatarColor); - } - const profileColor = getAccentColorHex(profileAccentColor); if (profileColor) { return profileColor; } + if (user && typeof user.avatarColor === 'number') { + return ColorUtils.int2hex(user.avatarColor); + } + if (user && !user.avatar) { return ColorUtils.int2hex(getDefaultAvatarPrimaryColor(user.id)); }