Skip to content

Commit

Permalink
More Checks 👀
Browse files Browse the repository at this point in the history
  • Loading branch information
officiallygod committed Mar 1, 2024
1 parent c16ef91 commit 1683701
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/OnboardingSPA/steps/SiteGen/Preview/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,11 +250,12 @@ const SiteGenPreview = () => {
const headings =
data.styles?.blocks[ 0 ]?.[ 'core/heading' ]?.typography
?.fontFamily;
if ( newPreviewSettings.styles.typography ) {
if ( newPreviewSettings.styles.typography && body ) {
newPreviewSettings.styles.typography.fontFamily = body;
}
if (
newPreviewSettings.styles.blocks[ 'core/heading' ].typography
newPreviewSettings.styles.blocks[ 'core/heading' ].typography &&
headings
) {
newPreviewSettings.styles.blocks[
'core/heading'
Expand Down

0 comments on commit 1683701

Please sign in to comment.