Browse Source

Merge branch 'splash-fix' of Viktoriia/nomadmania-app into dev

Viktoriia 1 year ago
parent
commit
caa9f80a67
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();
       }
     };