Skip to content

Commit

Permalink
Added _alert when metamask connect request rejected
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammad Usman committed Nov 8, 2018
1 parent 31c5d5e commit 78e8a3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/assets/v2/js/metamask-approval.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ async function metamaskApproval() {
await ethereum.enable();
}
} catch (error) {
_alert('Looks like you\'ve disabled metamask. Enable it to allow Gitcoin to interact with metamask ', 'warning');
_alert('Permission to connect to metamask rejected. Allow gitcoin to connect to metamask.', 'warning');
}
}
}
Expand All @@ -20,6 +20,6 @@ async function approve_metamask() {
try {
await ethereum.enable();
} catch (error) {

_alert('Permission to connect to metamask rejected. Allow gitcoin to connect to metamask.', 'warning');
}
}

0 comments on commit 78e8a3d

Please sign in to comment.