File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
templates/bootstrap/dashboard/js Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ $(document).ready(function(){
117117 $(' #b-nextdiff' ).html(' n/a' );
118118 $(' #b-nextdiffc' ).html(' No Estimates' );
119119 }
120- $('#b-esttimeperblock').html(data.getdashboarddata.data.pool.esttimeperblock.toString(). toHHMMSS());
120+ $('#b-esttimeperblock').html(data.getdashboarddata.data.pool.esttimeperblock.toHHMMSS());
121121 $('#b-nblock').html(data.getdashboarddata.data.network.block);
122122 $('#b-roundprogress').html(number_format(parseFloat(data.getdashboarddata.data.pool.shares.progress).toFixed(2), 2) + "%");
123123 { /literal } { if $GLOBAL .config.payout_system != ' pps' } { literal }
@@ -158,6 +158,7 @@ $(document).ready(function(){
158158
159159 function refreshBlockData(data) {
160160 blocks = data.getdashboarddata.data.pool.blocks;
161+ if (blocks.length <= 0) return;
161162 // Initilize
162163 if (lastBlock == 0) {
163164 lastBlock = blocks[0].height;
You can’t perform that action at this time.
0 commit comments