Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

SUP-2250, Grey color for handle should be more darker than current one. #460

Merged
merged 1 commit into from
Oct 27, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/filters/rating-color.filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
if (typeof rating === 'string')
rating = parseInt(rating.replace(",", ""));
colors = colors.filter(function(color) {
return rating >= color.start && rating <= color.end;
return rating !== null && rating >= color.start && rating <= color.end;
});
return colors[0] && colors[0].color || 'black';
}
Expand Down
2 changes: 1 addition & 1 deletion app/services/profile.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@
}

function getUserHandleColor(profile) {
var rating = _.get(profile, 'maxRating.rating', 0);
var rating = _.get(profile, 'maxRating.rating', null);
return $filter('ratingColor')(rating);
}

Expand Down