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

Commit 227a0e1

Browse files
author
vikasrohit
committed
SUP-2250, Grey color for handle should be more darker than current one.
-- Updated color for unrated members. Identified unrated members by having null rating field. If a member has 0 rating it would be treated with grey color.
1 parent e89c961 commit 227a0e1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/filters/rating-color.filter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
if (typeof rating === 'string')
1111
rating = parseInt(rating.replace(",", ""));
1212
colors = colors.filter(function(color) {
13-
return rating >= color.start && rating <= color.end;
13+
return rating !== null && rating >= color.start && rating <= color.end;
1414
});
1515
return colors[0] && colors[0].color || 'black';
1616
}

app/services/profile.service.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@
286286
}
287287

288288
function getUserHandleColor(profile) {
289-
var rating = _.get(profile, 'maxRating.rating', 0);
289+
var rating = _.get(profile, 'maxRating.rating', null);
290290
return $filter('ratingColor')(rating);
291291
}
292292

0 commit comments

Comments
 (0)