Improve naming

This commit is contained in:
MartinBraquet
2026-03-01 01:48:10 +01:00
parent 17faf2fe26
commit b030dd1a52

View File

@@ -34,6 +34,6 @@ export const applyFontPreference = (font: FontOption) => {
const getStoredFontPreference = (): FontOption => {
if (typeof window === 'undefined') return 'atkinson'
const theme = JSON.parse(localStorage.getItem('font-preference') ?? 'null') ?? 'atkinson'
return theme.value ?? (theme as FontOption)
const font = JSON.parse(localStorage.getItem('font-preference') ?? 'null') ?? 'atkinson'
return font.value ?? (font as FontOption)
}