Browse Source

Fix promise rejection warning

Arnaud Vergnet 1 year ago
parent
commit
956d78ad7f
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      App.js

+ 3
- 1
App.js View File

@@ -165,7 +165,9 @@ export default class App extends React.Component<null, StateType> {
165 165
    */
166 166
   loadAssetsAsync = async () => {
167 167
     await AsyncStorageManager.getInstance().loadPreferences();
168
-    await ConnectionManager.getInstance().recoverLogin();
168
+    await ConnectionManager.getInstance()
169
+      .recoverLogin()
170
+      .catch(() => {});
169 171
   };
170 172
 
171 173
   /**

Loading…
Cancel
Save