Skip to content

Commit

Permalink
Fix missing star in rating
Browse files Browse the repository at this point in the history
  • Loading branch information
opatry committed Jan 30, 2025
1 parent 6233741 commit afbdb1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ unless cover.nil?
stars.setAttribute('class', 'rating-bar');
stars.dataset.rating = value;

for (let i = 1; i < maxStars; ++i) {
for (let i = 0; i < maxStars; ++i) {
stars.insertAdjacentHTML('beforeend', i < value ? starActive : starInactive);
}

Expand Down

0 comments on commit afbdb1c

Please sign in to comment.