FIX: Check holiday usernames in lowercase

This commit is contained in:
Vinoth Kannan 2018-09-10 18:24:06 +05:30
parent 578ac48171
commit f7518a69d0
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ export default {
} }
mentions.each((i, el) => { mentions.each((i, el) => {
const username = $(el).text().replace("@", ""); const username = $(el).text().replace("@", "").toLowerCase();
if (usersOnHoliday.includes(username)) { if (usersOnHoliday.includes(username)) {
$(el).append('<i class="fa fa-calendar d-icon d-icon-calendar" title="on holiday"></i>'); $(el).append('<i class="fa fa-calendar d-icon d-icon-calendar" title="on holiday"></i>');