react-useravatar
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -27,3 +27,3 @@ 'use strict'; | ||
* @url https://github.com/bltnico/react-user-avatar | ||
* @version 1.0.5 | ||
* @version 1.0.6 | ||
* | ||
@@ -118,3 +118,4 @@ * @example | ||
value: function getColor() { | ||
return this.intToRGB(this.hashCode(this.props.username)); | ||
var hash = this.hashCode(this.props.username); | ||
return this.intToRGB(hash); | ||
} | ||
@@ -121,0 +122,0 @@ |
{ | ||
"name": "react-useravatar", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -11,3 +11,3 @@ 'use strict'; | ||
* @url https://github.com/bltnico/react-user-avatar | ||
* @version 1.0.5 | ||
* @version 1.0.6 | ||
* | ||
@@ -88,3 +88,4 @@ * @example | ||
getColor() { | ||
return this.intToRGB(this.hashCode(this.props.username)); | ||
let hash = this.hashCode(this.props.username); | ||
return this.intToRGB(hash); | ||
} | ||
@@ -91,0 +92,0 @@ |
10717
319