Skip to content

Commit

Permalink
tracking: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
retrofox committed Apr 16, 2020
1 parent 99ac06d commit 38564b2
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ const InserterMenuTrackingEvent = function() {
* to the temporary solution below if the core version
* is equal to 7.8.1.
*/
if ( plugingVersion && plugingVersion === '7.8.1' ) {
if ( pluginVersion && pluginVersion === '7.8.1' ) {
return null;
}

// let's remove this line once the core version updates.
debug( '%o: tracking with Slot parameter', plugingVersion );
debug( '%o: tracking with Slot parameter', pluginVersion );

if ( has_items ) {
return;
Expand All @@ -77,11 +77,11 @@ const InserterMenuTrackingEvent = function() {
*/
useEffect( () => {
// Skip whether isn't the 7.8.1 version.
if ( plugingVersion && plugingVersion !== '7.8.1' ) {
if ( pluginVersion && pluginVersion !== '7.8.1' ) {
return;
}
// let's remove this line once the core version updates.
debug( '%o: tracking inspecting DOM tree', plugingVersion );
debug( '%o: tracking inspecting DOM tree', pluginVersion );

if ( ! searchTerm || searchTerm.length < 3 ) {
return;
Expand All @@ -103,7 +103,7 @@ const InserterMenuTrackingEvent = function() {
) {
tracksRecordEvent( 'wpcom_block_picker_no_results', eventProperties );
}
}, [ searchTerm, plugingVersion, selectedBlock ] );
}, [ searchTerm, pluginVersion, selectedBlock ] );

return (
<InserterMenuExtension>
Expand Down

0 comments on commit 38564b2

Please sign in to comment.