From e849a7f97012873618802b634c4b8eb9a20c8359 Mon Sep 17 00:00:00 2001 From: Konstantin Date: Tue, 8 Nov 2016 12:15:10 +0000 Subject: [PATCH] fix for empty node info errors --- src/js/filters.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/filters.js b/src/js/filters.js index db0e31b..a01e7ed 100644 --- a/src/js/filters.js +++ b/src/js/filters.js @@ -128,7 +128,7 @@ angular.module('netStatsApp.filters', []) }) .filter('nodeVersion', function($sce) { return function(version) { - if(typeof version !== 'undefined') + if(version) { var tmp = version.split('/'); @@ -463,7 +463,7 @@ angular.module('netStatsApp.filters', []) var tooltip = []; var string = ''; - if(node.info.node !== '' && typeof node.info.node !== 'undefined') { + if(node.info.node) { var eth_version = node.info.node.split('/'); if(eth_version[1][0] !== 'v' && eth_version[1][2] !== '.') @@ -668,4 +668,4 @@ function blockTimeClass(diff) return 'text-orange'; return 'text-danger' -} \ No newline at end of file +}