Skip to content

Commit

Permalink
Merge pull request #25 from eco-stake/handle-empty-pagination-response
Browse files Browse the repository at this point in the history
Handle empty pagination response
  • Loading branch information
tombeynon authored Jul 8, 2022
2 parents 418a50a + 634a223 commit 3dc8f23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validators/validatorMonitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ function ValidatorMonitor() {
if(result && result.body){
const json = JSON.parse(result.body)
pages.push(json);
nextKey = json.pagination.next_key;
nextKey = json.pagination?.next_key;
}else{
nextKey = undefined
}
Expand Down

0 comments on commit 3dc8f23

Please sign in to comment.