diff --git a/src/js/directives/gravatar.js b/src/js/directives/gravatar.js index 2d28168d4..c76817b5e 100644 --- a/src/js/directives/gravatar.js +++ b/src/js/directives/gravatar.js @@ -12,9 +12,10 @@ angular.module('copayApp.directives') email: '@' }, link: function(scope, el, attr) { - scope.emailHash = md5.createHash(scope.email || ''); + if(typeof scope.email === "string"){ + scope.emailHash = md5.createHash(scope.email.toLowerCase() || ''); + } }, template: '{{ name }}' } }); -