From 38564b24c08b7bb15a36228cf1c67491940a01b7 Mon Sep 17 00:00:00 2001 From: retrofox Date: Thu, 16 Apr 2020 08:33:47 -0300 Subject: [PATCH] tracking: fix typo --- .../tracking/wpcom-navigation-menu-search-handler.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/wpcom-block-editor/src/wpcom/features/tracking/wpcom-navigation-menu-search-handler.js b/apps/wpcom-block-editor/src/wpcom/features/tracking/wpcom-navigation-menu-search-handler.js index e9a324d70d4dd..66fb9a6a32041 100644 --- a/apps/wpcom-block-editor/src/wpcom/features/tracking/wpcom-navigation-menu-search-handler.js +++ b/apps/wpcom-block-editor/src/wpcom/features/tracking/wpcom-navigation-menu-search-handler.js @@ -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; @@ -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; @@ -103,7 +103,7 @@ const InserterMenuTrackingEvent = function() { ) { tracksRecordEvent( 'wpcom_block_picker_no_results', eventProperties ); } - }, [ searchTerm, plugingVersion, selectedBlock ] ); + }, [ searchTerm, pluginVersion, selectedBlock ] ); return (