diff --git a/components/settings/SettingsFontSize.vue b/components/settings/SettingsFontSize.vue index 23073cc2..88e4a08c 100644 --- a/components/settings/SettingsFontSize.vue +++ b/components/settings/SettingsFontSize.vue @@ -5,9 +5,9 @@ import type { FontSize } from '~/types' const sizes = ['xs', 'sm', 'md', 'lg', 'xl'] as FontSize[] const fontSize = useFontSizeRef() -const setFontSize = (e: any) => { - if ('valueAsNumber' in e.target) - fontSize.value = sizes[e.target.valueAsNumber] +const setFontSize = (e: Event) => { + if (e.target && 'valueAsNumber' in e.target) + fontSize.value = sizes[e.target.valueAsNumber as number] }