Update client/header/activity-panel/index.js
This commit is contained in:
parent
e2cd150071
commit
1aeb60697e
|
@ -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 } );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue