Skip to content

Commit

Permalink
Tweak on the example app to avoid showing the firebaseUI widget if th…
Browse files Browse the repository at this point in the history
…e user is already signed-in (while waiting for us to know the auth state).
  • Loading branch information
Nicolas Garnier committed Mar 28, 2018
1 parent c8b0d9c commit e00dc80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class App extends React.Component {
};

state = {
isSignedIn: false,
isSignedIn: undefined,
};

/**
Expand Down Expand Up @@ -78,7 +78,7 @@ class App extends React.Component {
<i className={styles.logoIcon + ' material-icons'}>photo</i> My App
</div>
<div className={styles.caption}>This is a cool demo app</div>
{!this.state.isSignedIn &&
{this.state.isSignedIn !== undefined && !this.state.isSignedIn &&
<div>
<StyledFirebaseAuth className={styles.firebaseUi} uiConfig={this.uiConfig}
firebaseAuth={firebaseApp.auth()}/>
Expand Down

0 comments on commit e00dc80

Please sign in to comment.