Skip to content

Commit c028845

Browse files
Merge pull request steam-bell-92#1696 from nishtha-agarwal-211/fix/project-content-unavailable
fix: resolve project content unavailable error and dashboard stats Typeerror
2 parents 28805bb + 7345b4a commit c028845

2 files changed

Lines changed: 0 additions & 11 deletions

File tree

web-app/index.html

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,16 +1005,7 @@ <h3>${proj.title}</h3>
10051005
(p) => p.category === "utilities"
10061006
).length;
10071007

1008-
const heroCount = document.getElementById("heroProjectCount");
1009-
const heroGames = document.getElementById("heroGameCount");
1010-
const heroMath = document.getElementById("heroMathCount");
1011-
const heroUtils = document.getElementById("heroUtilityCount");
10121008
const projectBadge = document.getElementById("projectCountBadge");
1013-
1014-
if (heroCount) heroCount.textContent = total;
1015-
if (heroGames) heroGames.textContent = games;
1016-
if (heroMath) heroMath.textContent = math;
1017-
if (heroUtils) heroUtils.textContent = utils;
10181009
if (projectBadge) projectBadge.textContent = total + " projects";
10191010
animateCounter("statsTotal",total);
10201011
animateCounter("statsGames",games);

web-app/js/projects.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ function getProjectHTML(projectName) {
3939
'minesweeper': getMinesweeperHTML()
4040
};
4141

42-
return projects[projectName] || "<h2>Project Coming Soon!</h2>";
43-
}
4442

4543
function toPascalCase(str) {
4644
if (str === "2048-game") return "2048Game";

0 commit comments

Comments
 (0)