diff --git a/public/app.js b/public/app.js index 81cc0c9..229d2e0 100644 --- a/public/app.js +++ b/public/app.js @@ -442,12 +442,12 @@ function createDownloadCard(download) { badge.textContent = tag; header.appendChild(badge); } - if (download.matchedUserTag) { - const matchedBadge = document.createElement('span'); - matchedBadge.className = 'download-user-badge'; - matchedBadge.textContent = download.matchedUserTag; - header.appendChild(matchedBadge); - } + } + if (download.matchedUserTag) { + const matchedBadge = document.createElement('span'); + matchedBadge.className = 'download-user-badge'; + matchedBadge.textContent = download.matchedUserTag; + header.appendChild(matchedBadge); } const details = document.createElement('div');