Skip to content

Commit 4654260

Browse files
fix: resolve typeerror when rendering projects without difficulty
1 parent ec81729 commit 4654260

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

web-app/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1198,9 +1198,11 @@ <h3>Stay Updated</h3>
11981198
const starClass = isFavorite ? "fas fa-star" : "far fa-star";
11991199

12001200
card.innerHTML = `
1201+
${proj.difficulty ? `
12011202
<div class="difficulty-badge ${proj.difficulty.toLowerCase()}">
12021203
${proj.difficulty}
12031204
</div>
1205+
` : ''}
12041206
12051207
<img class="card-banner"
12061208
src="assets/banners/${proj.project}.webp?v=2"

0 commit comments

Comments
 (0)