Skip to content
Snippets Groups Projects
Commit befb868f authored by Todd Dembrey's avatar Todd Dembrey
Browse files

Gh-1016: Make the float string consistent with the review

parent e91598ee
No related branches found
No related tags found
No related merge requests found
......@@ -41,7 +41,7 @@ export const Review = ({ url, author, score, recommendation, children }) => {
<li className="reviews-sidebar__item">
<a target="_blank" rel="noopener noreferrer" href={url}>{author}</a>
<div>{recommendation.display}</div>
<div>{score}</div>
<div>{parseFloat(score).toFixed(1)}</div>
</li>
{hasOpinions &&
......@@ -88,7 +88,7 @@ const ReviewBlock = ({ children, recommendation, score }) => {
renderTrafficLight()
}
{!isNaN(parseFloat(score)) &&
<div>{score}</div>
<div>{parseFloat(score).toFixed(1)}</div>
}
</li>
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment