From 130934a317c7e642afb0757bbe4271e8a5370d69 Mon Sep 17 00:00:00 2001 From: tkoibaev Date: Sun, 15 Dec 2024 23:11:01 +0300 Subject: [PATCH] Fix float on rating num --- public/components/RateBlock/RateBlock.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/components/RateBlock/RateBlock.ts b/public/components/RateBlock/RateBlock.ts index e7209bf..764d0b6 100644 --- a/public/components/RateBlock/RateBlock.ts +++ b/public/components/RateBlock/RateBlock.ts @@ -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, });