Skip to content

Commit

Permalink
Do not show the error page for plugin upload flow
Browse files Browse the repository at this point in the history
  • Loading branch information
epeicher committed Feb 6, 2025
1 parent 50f4c4a commit a732e9f
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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( () => {
Expand Down

0 comments on commit a732e9f

Please sign in to comment.