Skip to content

Commit

Permalink
fix blockstart
Browse files Browse the repository at this point in the history
  • Loading branch information
Tosch110 committed Jun 10, 2016
1 parent 252ec91 commit 30b7d3f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/waves.ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ var Waves = (function(Waves, $, undefined) {
var row = '';
var endBlock = Waves.blockHeight;
var startBlock = endBlock - amountOfBlocks;
if(startBlock <= 0) startBlock = 1;
Waves.apiRequest(Waves.api.blocks.lastBlocks(startBlock, endBlock), function(response) {

response.sort(function(x, y){
Expand Down

0 comments on commit 30b7d3f

Please sign in to comment.