0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Used theme package name for hiding theme-specific font settings (#21545)

ref DES-929
This commit is contained in:
Sodbileg Gansukh 2024-11-06 18:42:32 +08:00 committed by GitHub
parent fefd45a27b
commit 9516d144a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -43,7 +43,7 @@ const themeSettingsMap: ThemeSettingsMap = {
const ThemeSettings: React.FC<ThemeSettingsProps> = ({sections, updateSetting}) => {
const {data: themesData} = useBrowseThemes();
const activeTheme = themesData?.themes.find((theme: Theme) => theme.active);
const activeThemeName = activeTheme?.name.toLowerCase() || '';
const activeThemeName = activeTheme?.package.name?.toLowerCase() || '';
const hasCustomFonts = useFeatureFlag('customFonts');
return (