We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01dcb5c commit ec3a185Copy full SHA for ec3a185
src/components/TopBar/TopBar.jsx
@@ -57,10 +57,10 @@ class TopBar extends Component {
57
const isLoggedIn = !!userHandle
58
const logoTargetUrl = isLoggedIn ? '/projects' : '/'
59
60
- const logoutClick = () => {
61
- window.analytics.reset()
+ const logoutClick = (evt) => {
+ evt.preventDefault()
62
+ window.analytics && window.analytics.reset()
63
window.location = logoutLink
-
64
}
65
66
const userMenuItems = [
0 commit comments