fix: apply default font immediately on mount before settings load
This commit is contained in:
@@ -10,10 +10,6 @@ export const useUserSettings = () => {
|
|||||||
const store = useUserRepoStore()
|
const store = useUserRepoStore()
|
||||||
|
|
||||||
watchEffect(() => {
|
watchEffect(() => {
|
||||||
if (store.userSettings === undefined) {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
const root = document.documentElement
|
const root = document.documentElement
|
||||||
|
|
||||||
const fontFamily = store.userSettings?.chosenFontFamily
|
const fontFamily = store.userSettings?.chosenFontFamily
|
||||||
|
|||||||
Reference in New Issue
Block a user