Browse Source

small splash fix

Viktoriia 1 year ago
parent
commit
5ae08ad4ef
1 changed files with 1 additions and 1 deletions
  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();
       }
     };