From bda355fd58a06b5fe7cf58a12d32769f75112a4f Mon Sep 17 00:00:00 2001
From: Eric Bailey <git@esb.lol>
Date: Wed, 18 Sep 2024 20:22:03 -0500
Subject: Fix font loading on web (#5412)

* Copy font files during build

* Fall back if error loading fonts
---
 src/App.web.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/App.web.tsx')

diff --git a/src/App.web.tsx b/src/App.web.tsx
index 1c6650733..846d178f9 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
   }
 
-- 
cgit 1.4.1

