diff --git a/static/js/contributions.js b/static/js/contributions.js index 9f86821..b351c80 100644 --- a/static/js/contributions.js +++ b/static/js/contributions.js @@ -67,7 +67,9 @@ function yearly(year) { } function monthly(year, month, posts) { - const monthPosts = posts.filter(post => post.date.getMonth() === month); + const monthPosts = posts.filter(post => + post.date.getFullYear().toString() === year && post.date.getMonth() === month + ); let liHtml = ''; for (const post of monthPosts) { liHtml += `