[Customize Your Store] Correct activeThemeHasMods conditionals (#40560)

* Fix activeThemeHasMods logic

* Add changelog
This commit is contained in:
Chi-Hsuan Huang 2023-10-05 11:42:05 +08:00 committed by GitHub
parent 44a78870b3
commit 6d14eb744e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -93,9 +93,9 @@ export const fetchIntroData = async () => {
const { getTask } = resolveSelect( ONBOARDING_STORE_NAME );
const activeThemeHasMods =
currentTemplate?.modified !== null ||
!! currentTemplate?.modified ||
styleRevs?.length > 0 ||
hasModifiedPages.length > 0;
hasModifiedPages;
const customizeStoreTaskCompleted = ( await getTask( 'customize-store' ) )
?.isComplete;
const themeCards = await fetchThemeCards();

View File

@ -0,0 +1,4 @@
Significance: patch
Type: fix
Fix customize your store activeThemeHasMods logic