Skip to content

Commit

Permalink
Fix float on rating num
Browse files Browse the repository at this point in the history
  • Loading branch information
tkoibaev committed Dec 15, 2024
1 parent f5395fd commit 130934a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/components/RateBlock/RateBlock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export class RateBlock {
renderTemplate() {
this.#parent.innerHTML = template({
isUserAuth: !!userStore.getUser().email,
rating: this.#movie?.rating,
rating: this.#movie?.rating.toFixed(1),
userRating: this.#movie?.userRating,
isUserVoted: this.#movie?.userRating !== 0,
});
Expand Down

0 comments on commit 130934a

Please sign in to comment.