소스 검색

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

fix: #140 crash while hydrating store from old version
Yifei Zhang 2 년 전
부모
커밋
8a05f84838
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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"