Skip to content

Commit

Permalink
simplified ternary operator
Browse files Browse the repository at this point in the history
  • Loading branch information
rpnykanen authored Feb 19, 2024
1 parent 253ed6f commit b0d4b7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/js/chat_leijuke.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit b0d4b7e

Please sign in to comment.