DEV: Do not render header in wizard preview when logo is missing (#10835)

DEV: Do not render header in wizard preview when logo is missing (#10835)

This can happen if a plugin skips the logo step of the wizard.

diff --git a/app/assets/javascripts/wizard/components/font-preview.js b/app/assets/javascripts/wizard/components/font-preview.js
index fef9fa5..99d42a5 100644
--- a/app/assets/javascripts/wizard/components/font-preview.js
+++ b/app/assets/javascripts/wizard/components/font-preview.js
@@ -34,7 +34,9 @@ export default createPreviewComponent(659, 320, {
   paint({ ctx, colors, font, headingFont, width, height }) {
     const headerHeight = height * 0.3;
 
-    this.drawFullHeader(colors, headingFont, this.logo);
+    if (this.logo) {
+      this.drawFullHeader(colors, headingFont, this.logo);
+    }
 
     const margin = width * 0.04;
     const avatarSize = height * 0.2;

GitHub sha: e175c467

This commit appears in #10835 which was approved by markvanlan. It was merged by pmusaraj.