From f4c002caddcdfed442ddf0afb89f2c341c7147cf Mon Sep 17 00:00:00 2001 From: Christian Paul Date: Sun, 24 Mar 2019 17:02:30 -0700 Subject: [PATCH] Fix issue where every button press causes a rerender --- src/Mapscii.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mapscii.js b/src/Mapscii.js index e9be433..2b6da00 100644 --- a/src/Mapscii.js +++ b/src/Mapscii.js @@ -225,7 +225,7 @@ class Mapscii { draw = false; } - if (draw !== null) { + if (draw) { this._draw(); } }