diff --git a/pages/projetos.md b/pages/projetos.md index 9bcbca7e..4b81d290 100755 --- a/pages/projetos.md +++ b/pages/projetos.md @@ -619,13 +619,9 @@ document.addEventListener('DOMContentLoaded', () => { const s = parseInt(c.dataset.stars || 0); const k = c.dataset.key; // Pega o que salvamos ("Ab", "Cm", etc) - const matchG = (currentGenre === 'all' || g === currentGenre); - const matchS = (currentMinStars === 'all' || s === parseInt(currentMinStars)); // Lembra do === da resposta anterior - // Novo Match de Tom - // A lógica aqui é simples: se for 'all', passa. Se não, tem que ser igual. - const matchK = (currentKey === 'all' || k === currentKey); const matchG = (currentGenre === 'all' || g === currentGenre); const matchS = (currentMinStars === 'all' || s === parseInt(currentMinStars)); + const matchK = (currentKey === 'all' || k === currentKey); col.style.display = (matchG && matchS && matchK) ? 'block' : 'none'; });