From ce5b4ded5779fa0306a52a1d2aedf96fc8ab645c Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Wed, 18 Sep 2024 20:08:53 -0500 Subject: [PATCH] Fall back if error loading fonts --- src/App.web.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.web.tsx b/src/App.web.tsx index 1c66507336..846d178f99 100644 --- a/src/App.web.tsx +++ b/src/App.web.tsx @@ -144,13 +144,13 @@ function InnerApp() { function App() { const [isReady, setReady] = useState(false) - const [loaded] = useFonts() + const [loaded, error] = useFonts() React.useEffect(() => { initPersistedState().then(() => setReady(true)) }, []) - if (!isReady || !loaded) { + if (!isReady || (!loaded && !error)) { return null }