diff --git a/bot.js b/bot.js index 7aeef2c..c038375 100644 --- a/bot.js +++ b/bot.js @@ -52,7 +52,7 @@ export const sendEvent = ({ type, displayName, ...payload }) => { case EVENT_TYPE_PLAYER_LEVEL_CHANGE: const { newLevel, oldLevel } = payload saveLevel(displayName, newLevel) - if (oldLevel && newLevel < oldLevel) { + if (newLevel < oldLevel) { return } const levelUpCount = getLevelUpCount(displayName)