Skip to content

Commit

Permalink
Merge pull request maestrano#269 from adamaziz15/bug/108-rating-stars
Browse files Browse the repository at this point in the history
Fix star ratings bug
  • Loading branch information
ouranos authored Aug 1, 2017
2 parents a4621ac + 91d2029 commit ac2bdc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/views/marketplace/marketplace-app.controller.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,8 @@ angular.module 'mnoEnterpriseAngular'

updateAverageRating = (rating) ->
# Update average rating
vm.averageRating = if rating? then parseFloat(rating).toFixed(1) else null
vm.isRateDisplayed = !!vm.averageRating
vm.averageRating = if rating? then parseFloat(rating).toFixed(1) else -1
vm.isRateDisplayed = vm.averageRating >= 0

#====================================
# Post-Initialization
Expand Down

0 comments on commit ac2bdc5

Please sign in to comment.