diff --git a/assets/js/chat_leijuke.js b/assets/js/chat_leijuke.js index 4ac0cd0e1..19c49d4ac 100644 --- a/assets/js/chat_leijuke.js +++ b/assets/js/chat_leijuke.js @@ -119,11 +119,11 @@ dates.push(JSON.parse(debug)); } - const date= dates.find((object)=>{ + const date = dates.find((object)=>{ return now >= new Date(object.start) && now < new Date(object.end); }); - return date ? true : false; + return !!date; } }