Viktoriia 1 год назад
Родитель
Сommit
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();
       }
     };