mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-02 14:16:39 +01:00
Fix this deja vu bug, Flash of Welcome Page (FOWP)
This commit is contained in:
parent
a4df58d297
commit
14c994c7ba
1 changed files with 8 additions and 2 deletions
10
src/app.jsx
10
src/app.jsx
|
@ -109,9 +109,15 @@ function App() {
|
|||
store.session.set('currentAccount', account.info.id);
|
||||
const { masto } = api({ account });
|
||||
initPreferences(masto);
|
||||
setUIState('loading');
|
||||
(async () => {
|
||||
await initInstance(masto);
|
||||
setIsLoggedIn(true);
|
||||
try {
|
||||
await initInstance(masto);
|
||||
} catch (e) {
|
||||
} finally {
|
||||
setIsLoggedIn(true);
|
||||
setUIState('default');
|
||||
}
|
||||
})();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue