From a732e9f4893be9f087646f4487dc08d145aa353d Mon Sep 17 00:00:00 2001 From: Roberto Aranda Date: Thu, 6 Feb 2025 18:03:20 +0100 Subject: [PATCH] Do not show the error page for plugin upload flow --- .../pages/marketplace-product-install/index.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/client/my-sites/marketplace/pages/marketplace-product-install/index.tsx b/client/my-sites/marketplace/pages/marketplace-product-install/index.tsx index 37979d9b5d0d1e..f969158621fe5c 100644 --- a/client/my-sites/marketplace/pages/marketplace-product-install/index.tsx +++ b/client/my-sites/marketplace/pages/marketplace-product-install/index.tsx @@ -172,12 +172,14 @@ const MarketplaceProductInstall = ( { // Check that the site URL and the plugin slug are the same which were selected on the plugin page useEffect( () => { - if ( ! marketplaceInstallationInProgress ) { + if ( ! isPluginUploadFlow && ! marketplaceInstallationInProgress ) { waitFor( 2 ).then( () => { - ! marketplaceInstallationInProgress && setNoDirectAccessError( true ); + ! isPluginUploadFlow && + ! marketplaceInstallationInProgress && + setNoDirectAccessError( true ); } ); } - }, [ marketplaceInstallationInProgress ] ); + }, [ marketplaceInstallationInProgress, isPluginUploadFlow ] ); // Upload flow startup useEffect( () => {