diff --git a/index.js b/index.js index 82da30d..06b1f02 100644 --- a/index.js +++ b/index.js @@ -120,6 +120,11 @@ function newEvents (events) { function todaysFood (id) { this.createFoodList = (str, array, cb) => { + if (array.length === 0) { + cb(str + 'Ei tarjoilua tänään') + return + } + var res = str var edullisesti = '*Edullisesti:* \n' var makeasti = '*Makeasti:*\n'