Skip to content

Commit

Permalink
fix for empty node info errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jesuscript committed Nov 8, 2016
1 parent b027754 commit e849a7f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/js/filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -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('/');

Expand Down Expand Up @@ -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] !== '.')
Expand Down Expand Up @@ -668,4 +668,4 @@ function blockTimeClass(diff)
return 'text-orange';

return 'text-danger'
}
}

0 comments on commit e849a7f

Please sign in to comment.