fix(user-settings): prioritize i18n translation over theme.title for built-in themes

Signed-off-by: its-mitesh-kumar <itsmiteshkumar98@gmail.com>
This commit is contained in:
its-mitesh-kumar
2026-05-02 20:12:41 +05:30
parent 6eda127a8c
commit ba0ff93e88
@@ -142,10 +142,10 @@ export const UserSettingsThemeToggle = () => {
const themeId = theme.id;
const themeIcon = theme.icon;
const themeTitle =
theme.title ||
(themeId === 'light' || themeId === 'dark'
themeId === 'light' || themeId === 'dark'
? t(`themeToggle.names.${themeId}`)
: themeId);
: theme.title || themeId;
return (
<TooltipToggleButton
key={themeId}