Skip to content

Commit

Permalink
add early return
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasbenedetto committed Sep 13, 2023
1 parent a71eedc commit bb4f403
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ export function getPreviewStyle( family ) {
if ( ! Array.isArray( family.fontFace ) ) {
style.fontWeight = '400';
style.fontStyle = 'normal';
return style;
}

if ( family.fontFace ) {
Expand Down

0 comments on commit bb4f403

Please sign in to comment.