diff --git a/src/components/LogoutLink.js b/src/components/LogoutLink.js index c60a7e3..0e37030 100644 --- a/src/components/LogoutLink.js +++ b/src/components/LogoutLink.js @@ -30,6 +30,10 @@ export default class LogoutLink extends React.Component { if (!this.state.disabled) { this.setState({ disabled: true }); + if (this.props.onClick) { + this.props.onClick(e); + } + UserActions.logout(() => { this._performRedirect(primaryRedirectTo); });