Skip to content

Commit

Permalink
Merge pull request #33 from jsolly/bugfix-fix-build
Browse files Browse the repository at this point in the history
Bugfix fix build
  • Loading branch information
John Solly authored Mar 8, 2024
2 parents f58f471 + 9b2bffc commit 40f618a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
"enabled": true,
"rules": {
"recommended": true,
"nursery": {
"noUnusedImports": "error"
},
"suspicious": {
"noConsoleLog": "error"
}
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/carousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ document.addEventListener("DOMContentLoaded", () => {
// When an indicator is clicked, update the carousel to show the corresponding item
for (const indicator of indicators) {
indicator.addEventListener("click", () => {
const index = parseInt(indicator.getAttribute("data-carousel-index"), 10);
const index = Number.parseInt(indicator.getAttribute("data-carousel-index"), 10);
currentCarouselIndex = index;
updateCarousel();
});
Expand Down

0 comments on commit 40f618a

Please sign in to comment.