Remove discord link for showcase items when not relevant

This commit is contained in:
Asaf Gartner 2022-08-09 12:27:32 +03:00
parent 7ea11ebd51
commit b62954ba37
1 changed files with 5 additions and 1 deletions

View File

@ -110,7 +110,11 @@ function makeShowcaseItem(timelineItem) {
}
}
modalEl.discord_link.href = timelineItem.discord_message_url;
if (timelineItem.discord_message_url != "") {
modalEl.discord_link.href = timelineItem.discord_message_url;
} else {
modalEl.discord_link.remove();
}
function close() {
modalEl.overlay.remove();