FIX: Check holiday usernames in lowercase
This commit is contained in:
parent
578ac48171
commit
f7518a69d0
|
@ -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>');
|
||||||
|
|
Loading…
Reference in New Issue