Skip to content

Commit

Permalink
Merge pull request #5795 from gitcoinco/sentry-accounts-undefined-fix
Browse files Browse the repository at this point in the history
fix sentry error when no account available in grants
  • Loading branch information
thelostone-mc authored Jan 15, 2020
2 parents 57a8b70 + 45c1031 commit c230b66
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/assets/v2/js/grants/shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ const notifyOwnerAddressMismatch = (username, address, button, message) => {

web3.eth.getAccounts((error, accounts) => {
if (
typeof accounts != 'undefined' &&
document.contxt && document.contxt.github_handle == username &&
accounts[0] && accounts[0] != address
) {
Expand Down

0 comments on commit c230b66

Please sign in to comment.