From b2a96ff4c7ed916eacd9e5f6c6d483cb138bae5e Mon Sep 17 00:00:00 2001 From: Stephan Date: Wed, 7 Feb 2018 17:27:15 +0100 Subject: [PATCH] Avoid rendering of unauthenticated content during authentication `this.setState({ isAuthenticating: false });` is called before `this.userHasAuthenticated(true);` finishes --- src/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.js b/src/App.js index fca1665..9542f6f 100644 --- a/src/App.js +++ b/src/App.js @@ -19,7 +19,7 @@ class App extends Component { async componentDidMount() { try { if (await authUser()) { - this.userHasAuthenticated(true); + await this.userHasAuthenticated(true); } } catch(e) {