Fix bug with 0th contact color
Contact color css class wasn't being rendered because 0 is falsey. // FREEBIE
This commit is contained in:
parent
47b58b8994
commit
d808d255eb
4 changed files with 32 additions and 32 deletions
|
@ -250,7 +250,7 @@
|
|||
}
|
||||
var initials = title.trim()[0];
|
||||
return {
|
||||
color: Math.abs(this.hashCode()) % 15,
|
||||
color: 1 + (Math.abs(this.hashCode()) % 15),
|
||||
content: initials
|
||||
};
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue