fixed networkHashrate bug when null
This commit is contained in:
parent
1aa87c2d7f
commit
305f90d536
2
dist/js/netstats.min.js
vendored
2
dist/js/netstats.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/js/netstats.min.js.map
vendored
2
dist/js/netstats.min.js.map
vendored
File diff suppressed because one or more lines are too long
@ -291,6 +291,9 @@ angular.module('netStatsApp.filters', [])
|
|||||||
})
|
})
|
||||||
.filter('networkHashrateFilter', ['$sce', '$filter', function($sce, filter) {
|
.filter('networkHashrateFilter', ['$sce', '$filter', function($sce, filter) {
|
||||||
return function(hashes, isMining) {
|
return function(hashes, isMining) {
|
||||||
|
if(hashes === null)
|
||||||
|
hashes = 0;
|
||||||
|
|
||||||
var result = 0;
|
var result = 0;
|
||||||
var unit = 'K';
|
var unit = 'K';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user