Skip to content

Commit

Permalink
round [wordpress] rating (#2283)
Browse files Browse the repository at this point in the history
closes #2280
  • Loading branch information
chris48s authored Nov 6, 2018
1 parent 5019d81 commit 33d5f8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/wordpress/wordpress-rating.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const extensionData = {
class WordpressRatingBase extends BaseWordpress {
static render({ response }) {
const total = response.num_ratings
const rating = (response.rating / 100) * 5
const rating = ((response.rating / 100) * 5).toFixed(1)
return {
message: `${rating}/5 (${metric(total)})`,
color: floorCount(rating, 2, 3, 4),
Expand Down

0 comments on commit 33d5f8f

Please sign in to comment.