FIX: Dynamically adjust scale when rendering wizard canvases

FIX: Dynamically adjust scale when rendering wizard canvases

This was a typo in fd0de64

diff --git a/app/assets/javascripts/wizard/lib/preview.js.es6 b/app/assets/javascripts/wizard/lib/preview.js.es6
index b96691a..476c214 100644
--- a/app/assets/javascripts/wizard/lib/preview.js.es6
+++ b/app/assets/javascripts/wizard/lib/preview.js.es6
@@ -45,7 +45,7 @@ export function createPreviewComponent(width, height, obj) {
         this._super(...arguments);
         const c = this.$("canvas")[0];
         this.ctx = c.getContext("2d");
-        this.ctx.scale(2, 2);
+        this.ctx.scale(scale, scale);
         this.reload();
       },

GitHub sha: b717e23c

1 Like