ShubhamSKadam / filmpire-AI_Powered_Movie_App

Filmpire - An AI Powered Movie App which combines the desire to unleash powerful creativity with the industry's most advanced JavaScript tools including React.js, Material UI, Alan AI, and more.
https://filmpire-ssk.netlify.app/
MIT License
18 stars 5 forks source link

Fix the movie rating of each movie to 1 decimal place #1

Open ShubhamSKadam opened 1 year ago

alokVerma749 commented 1 year ago

can you elaborate on this issue

ShubhamSKadam commented 1 year ago
  1. Go to the live link https://filmpire-ssk.netlify.app/
  2. Click on any movie.
  3. You would see the rating of the movie is displayed in 3 decimal places.

🎯 Your goal is to fix the rating to 1 decimal place.

alokVerma749 commented 1 year ago

I would like to take on this issue and work on it. Can you please assign it to me so that I can get started

ShubhamSKadam commented 1 year ago

@alokVerma749 You can work over the issue.

alokVerma749 commented 1 year ago

you can review it.

ShubhamSKadam commented 1 year ago

I merged it without reviewing. Later I figured out that the changes you made are not reflected in every movie. Please check.

alokVerma749 commented 1 year ago

it looks like the production js version didn't support the toFixed() method, if this is the case we can use some alternative of that method.

timisalin01 commented 1 week ago

add in movieinformation.jsx at the rating next line <Rating readOnly value={data.vote_average / 2} /> <Typography variant="subtitle1" gutterBottom style={{ marginLeft: '10px' }}

{data?.vote_average.toFixed(1)} / 10 this line will help {data?.vote_average.toFixed(1)} / 10