Fix stats null error

This commit is contained in:
joeuhren
2020-11-23 17:20:06 -07:00
parent 45d15876b9
commit d175db4dae
+2 -2
View File
@@ -304,9 +304,9 @@ router.get('/ext/summary', function(req, res) {
res.send({ data: [{
difficulty: difficulty,
difficultyHybrid: difficultyHybrid,
supply: stats.supply,
supply: (stats == null || stats.supply == null ? 0 : stats.supply),
hashrate: hashrate,
lastPrice: stats.last_price,
lastPrice: (stats == null || stats.last_price == null ? 0 : stats.last_price),
connections: connections,
masternodeCountOnline: masternodestotal.enabled,
masternodeCountOffline: masternodesoffline,