Skip to content

Commit

Permalink
Homepage replacement on AT: Fix default behaviour (#65846)
Browse files Browse the repository at this point in the history
* fix default behaviour on AT

* move default value before conditional
  • Loading branch information
andres-blanco authored Jul 22, 2022
1 parent ae75804 commit f503e13
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/state/themes/actions/activate.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ export function activate(
return dispatch( showAutoLoadingHomepageWarning( themeId ) );
}

keepCurrentHomepage = isSiteAtomic( getState(), siteId ) ? true : keepCurrentHomepage;

if ( isJetpackSite( getState(), siteId ) && ! getTheme( getState(), siteId, themeId ) ) {
const installId = suffixThemeIdForInstall( getState(), siteId, themeId );
// If theme is already installed, installation will silently fail,
Expand Down

0 comments on commit f503e13

Please sign in to comment.