From 5e6cd11028fe6219c264de067b1550c6f097903a Mon Sep 17 00:00:00 2001 From: Gan Eng Chin Date: Wed, 22 Mar 2023 16:09:40 +0800 Subject: [PATCH] Simplify naming in PluginsTabPanel. --- .../DiscoverTools/PluginsTabPanel.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/plugins/woocommerce-admin/client/marketing/overview-multichannel/DiscoverTools/PluginsTabPanel.tsx b/plugins/woocommerce-admin/client/marketing/overview-multichannel/DiscoverTools/PluginsTabPanel.tsx index 7bd9f2ea7d8..902bbc8a02e 100644 --- a/plugins/woocommerce-admin/client/marketing/overview-multichannel/DiscoverTools/PluginsTabPanel.tsx +++ b/plugins/woocommerce-admin/client/marketing/overview-multichannel/DiscoverTools/PluginsTabPanel.tsx @@ -60,10 +60,8 @@ export const PluginsTabPanel = ( { null ); const { installAndActivatePlugins } = useDispatch( PLUGINS_STORE_NAME ); - const { - loadInstalledPluginsAfterActivation: - loadInstalledExtensionsAfterActivation, - } = useInstalledPluginsWithoutChannels(); + const { loadInstalledPluginsAfterActivation } = + useInstalledPluginsWithoutChannels(); /** * Install and activate a plugin. @@ -88,7 +86,7 @@ export const PluginsTabPanel = ( { ] ); onInstallAndActivate( plugin.product ); - loadInstalledExtensionsAfterActivation( plugin.product ); + loadInstalledPluginsAfterActivation( plugin.product ); createNoticesFromResponse( response ); } catch ( error ) { createNoticesFromResponse( error );