Skip to content

Commit

Permalink
fix: hoodie.ready to resolve with API, not return it, after setup fin…
Browse files Browse the repository at this point in the history
…ished (#122)
  • Loading branch information
gr2m authored and Charlotte Spencer committed Jan 14, 2017
1 parent 67d2efb commit 0a9ae93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/get-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function getApi (state) {
},
get ready () {
if (state.isReady) {
return api
return Promise.resolve(api)
}

return Promise.all([hoodieAccount.ready, hoodieConnectionStatus.ready])
Expand Down

0 comments on commit 0a9ae93

Please sign in to comment.