fixed not a number check in changePageBy

This commit is contained in:
Edward Shen 2019-04-13 12:35:47 -04:00
parent 0bb003d3d8
commit 67d142452d
Signed by: edward
GPG key ID: 19182661E818369F

View file

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