From d8a29bfbeef2d343e0bc151a7f34aa70a4c817fe Mon Sep 17 00:00:00 2001 From: Saurabh Kumar Bajpai Date: Sun, 2 Aug 2026 17:31:29 +0530 Subject: [PATCH 1/2] fix: code quality and safety improvements --- src/static/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/static/script.js b/src/static/script.js index b443b804..f6348627 100644 --- a/src/static/script.js +++ b/src/static/script.js @@ -629,7 +629,7 @@ async function updatePortfolioAnalysis() { var q = normalize(query); if (!q) return []; return availableSkills.filter(function (skill) { - return normalize(skill).indexOf(q) !== -1 && !isSelected(skill); + return normalize(skill).includes(q) && !isSelected(skill); }).slice(0, 8); } From 934c7d5d4085c3d3f781ea4abc10d4fad02458f7 Mon Sep 17 00:00:00 2001 From: Saurabh Kumar Bajpai Date: Mon, 3 Aug 2026 00:37:44 +0530 Subject: [PATCH 2/2] fix: additional real bug fixes --- src/static/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/static/script.js b/src/static/script.js index f6348627..eeaaaeb0 100644 --- a/src/static/script.js +++ b/src/static/script.js @@ -372,7 +372,7 @@ function updateProfileWidgets() { ["completionist", "Completionist"], ["roadmap_runner", "Roadmap Runner"] ]; - badgesEl.innerHTML = badges.map(function (badge) { + badgesEl.innerHTML = (badges ?? []).map(function (badge) { var unlocked = progress.badges[badge[0]]; return "
  • " + (unlocked ? "OK" : "*") + "" + badge[1] + "
  • ";