diff --git a/anuncios.html b/anuncios.html
index 21c43882..4914e23a 100644
--- a/anuncios.html
+++ b/anuncios.html
@@ -372,7 +372,7 @@
a.textContent = anuncio.titulo;
a.addEventListener('click', (e) => {
e.preventDefault();
- const elementoAnuncio = document.getElementById(anuncio-${sanitizeHTML(anuncio.id)});
+ const elementoAnuncio = document.getElementById(`anuncio-${sanitizeHTML(anuncio.id)}`);
if (elementoAnuncio) {
elementoAnuncio.scrollIntoView({ behavior: 'smooth', block: 'start' });
}