Fix bug with 0th contact color

Contact color css class wasn't being rendered because 0 is falsey.

// FREEBIE
This commit is contained in:
lilia 2015-07-31 16:38:55 -07:00
parent 47b58b8994
commit d808d255eb
4 changed files with 32 additions and 32 deletions

View file

@ -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 {