Skip to content

Commit

Permalink
Merge pull request #2030 from jordanranz/hide-toast-state-change
Browse files Browse the repository at this point in the history
Hide Toast component when auth state changes
  • Loading branch information
jordanranz authored Nov 1, 2018
2 parents efa8c14 + 9c6b0be commit a9539b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/aws-amplify-react/src/Auth/Authenticator.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export default class Authenticator extends Component {
if (state === this.state.auth) { return; }

if (state === 'signedOut') { state = 'signIn'; }
this.setState({ auth: state, authData: data, error: null });
this.setState({ auth: state, authData: data, error: null, showToast: false });
if (this.props.onStateChange) { this.props.onStateChange(state, data); }
}

Expand Down

0 comments on commit a9539b7

Please sign in to comment.