Fix this deja vu bug, Flash of Welcome Page (FOWP)

This commit is contained in:
Lim Chee Aun 2023-02-10 11:35:06 +08:00
parent a4df58d297
commit 14c994c7ba

View file

@ -109,9 +109,15 @@ function App() {
store.session.set('currentAccount', account.info.id);
const { masto } = api({ account });
initPreferences(masto);
setUIState('loading');
(async () => {
try {
await initInstance(masto);
} catch (e) {
} finally {
setIsLoggedIn(true);
setUIState('default');
}
})();
}