Browse Source

Merge pull request #147 from Yidadaa/Yidadaa-patch-1

fix: #140 crash while hydrating store from old version
Yifei Zhang 1 year ago
parent
commit
8a05f84838
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/components/settings.tsx

+ 1 - 1
app/components/settings.tsx

@@ -232,7 +232,7 @@ export function Settings(props: { closeSettings: () => void }) {
           >
             <input
               type="range"
-              title={config.fontSize.toString() + 'px'}
+              title={`${config.fontSize ?? 14}px`}
               value={config.fontSize}
               min="12"
               max="18"