Remove discord link for showcase items when not relevant
This commit is contained in:
parent
7ea11ebd51
commit
b62954ba37
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue