Update client/header/activity-panel/index.js

This commit is contained in:
Paul Sealock 2019-06-26 11:20:22 +12:00 committed by GitHub
parent e2cd150071
commit 1aeb60697e
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ class ActivityPanel extends Component {
togglePanel( tabName ) { togglePanel( tabName ) {
const { isPanelOpen, currentTab } = this.state; const { isPanelOpen, currentTab } = this.state;
// If no panel is open, or if a new panel is opening, record a track. // If a panel is being opened, or if an existing panel is already open and a different one is being opened, record a track.
if ( ! isPanelOpen || tabName !== currentTab ) { if ( ! isPanelOpen || tabName !== currentTab ) {
recordEvent( 'wcadmin_activity_panel_open', { tab: tabName } ); recordEvent( 'wcadmin_activity_panel_open', { tab: tabName } );
} }