Skip to content

Commit

Permalink
fix sentry error when no account available in grants
Browse files Browse the repository at this point in the history
  • Loading branch information
danlipert committed Jan 14, 2020
1 parent eae039b commit 45c1031
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 45c1031

Please sign in to comment.