Skip to content

Commit

Permalink
fix enable function return type
Browse files Browse the repository at this point in the history
  • Loading branch information
scottphc committed Apr 23, 2019
1 parent 424b83d commit 702be7e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/trust-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ class TrustWeb3Provider {
params: []
})
.then(result => {
return result.result;
if (typeof result.result === "string") {
return [result.result];
} else {
return result.result;
}
});
}

Expand Down

0 comments on commit 702be7e

Please sign in to comment.