fix for empty node info errors

pull/5/head
Konstantin 8 years ago
parent b0277543e1
commit e849a7f970
  1. 4
      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] !== '.')

Loading…
Cancel
Save