A platform for community discussion. Free, open, simple.
DEV: Do not render header in wizard preview when logo is missing (#10835)
Penar Musaraje175c467cc29
diff --git a/app/assets/javascripts/wizard/components/font-preview.js b/app/assets/javascripts/wizard/components/font-preview.jsindex fef9fa56d4d..99d42a5212b 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;