From bf1aed73700badd09853a7fbd2ba005ede8ca0db Mon Sep 17 00:00:00 2001 From: cubedro Date: Tue, 28 Apr 2015 15:38:26 +0300 Subject: [PATCH] fixed undefined block hash --- public/js/filters.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/js/filters.js b/public/js/filters.js index bfb97db..04075c5 100644 --- a/public/js/filters.js +++ b/public/js/filters.js @@ -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);