Skip to content

Commit

Permalink
Merge pull request #8 from chrisfranko/patch-1
Browse files Browse the repository at this point in the history
fix no accounts error
  • Loading branch information
ppratscher authored Mar 23, 2017
2 parents 5d24ae9 + 8ebc772 commit 8f4a272
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routes/accounts.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ router.get('/:offset?', function(req, res, next) {

var data = {};

if (accounts.length === 0) {
if (accounts === null) {
return callback({name:"NoAccountsFound", message: "Chain contains no accounts."});
}

Expand Down Expand Up @@ -54,4 +54,4 @@ router.get('/:offset?', function(req, res, next) {
});
});

module.exports = router;
module.exports = router;

0 comments on commit 8f4a272

Please sign in to comment.