From b030dd1a522b4be138dc76af7e8a5180d0ae9878 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Sun, 1 Mar 2026 01:48:10 +0100 Subject: [PATCH] Improve naming --- web/hooks/use-font-preference.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/hooks/use-font-preference.ts b/web/hooks/use-font-preference.ts index f2089f44..d8a6dd3a 100644 --- a/web/hooks/use-font-preference.ts +++ b/web/hooks/use-font-preference.ts @@ -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) }