added tx property check

This commit is contained in:
cubedro 2015-04-15 22:50:08 +03:00
parent d91794fb1f
commit 58086dcabe

View File

@ -293,7 +293,10 @@ Node.prototype.txDensityChart = function()
{
return txDensity = _.map(this.blocks, function(block)
{
return block.transactions.length;
if(typeof block.transactions !== 'undefined')
return block.transactions.length;
return 0;
});
}