fixed undefined block hash

This commit is contained in:
cubedro 2015-04-28 15:38:26 +03:00
parent c7066a51cd
commit bf1aed7370
1 changed files with 3 additions and 0 deletions

View File

@ -134,6 +134,9 @@ angular.module('netStatsApp.filters', [])
})
.filter('hashFilter', function() {
return function(hash) {
if(typeof hash === 'undefined')
return "?";
if(hash.substr(0,2) === '0x')
hash = hash.substr(2,64);