From 67d142452d67d44426952017f35ff4252c901b92 Mon Sep 17 00:00:00 2001 From: Edward Shen Date: Sat, 13 Apr 2019 12:35:47 -0400 Subject: [PATCH] fixed not a number check in changePageBy --- MMM-pages.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MMM-pages.js b/MMM-pages.js index 9172699..13b3aef 100644 --- a/MMM-pages.js +++ b/MMM-pages.js @@ -107,7 +107,7 @@ Module.register('MMM-pages', { * numbers. */ changePageBy: function(amt, fallback) { - if (typeof payload !== 'number') { + if (typeof amt !== 'number') { Log.warn(`[Pages]: ${amt} is not a number!`); }