Update stats.js

BugFix: prevent `confirms` from being null
This commit is contained in:
hellcatz 2017-05-04 18:56:05 -07:00 committed by GitHub
parent 8d5a13697f
commit 133ce797b7
1 changed files with 1 additions and 1 deletions

View File

@ -344,7 +344,7 @@ module.exports = function(logger, portalConfig, poolConfigs){
/* show all pending blocks */
pending: {
blocks: replies[i + 6].sort(sortBlocks),
confirms: replies[i + 9]
confirms: (replies[i + 9] || {})
},
/* show last 5 found blocks */
confirmed: {