瀏覽代碼

small splash fix

Viktoriia 1 年之前
父節點
當前提交
5ae08ad4ef
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Route.tsx

+ 1 - 1
Route.tsx

@@ -102,7 +102,6 @@ const Route = () => {
       await openDatabases();
       setDbLoaded(true);
       setServerReady(true);
-      await setupDatabaseAndSync();
     };
 
     const findFastestServer = async () => {
@@ -121,6 +120,7 @@ const Route = () => {
     const hideSplashScreen = async () => {
       if (fontsLoaded && dbLoaded && serverReady) {
         await SplashScreen.hideAsync();
+        await setupDatabaseAndSync();
       }
     };