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!`); }