mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-03-24 17:41:27 -04:00
Improve naming
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user