Skip to content

Commit 8f4a272

Browse files
author
ppratscher
authored
Merge pull request #8 from chrisfranko/patch-1
fix no accounts error
2 parents 5d24ae9 + 8ebc772 commit 8f4a272

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

routes/accounts.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ router.get('/:offset?', function(req, res, next) {
1818

1919
var data = {};
2020

21-
if (accounts.length === 0) {
21+
if (accounts === null) {
2222
return callback({name:"NoAccountsFound", message: "Chain contains no accounts."});
2323
}
2424

@@ -54,4 +54,4 @@ router.get('/:offset?', function(req, res, next) {
5454
});
5555
});
5656

57-
module.exports = router;
57+
module.exports = router;

0 commit comments

Comments
 (0)