Skip to content

Commit

Permalink
fix metamask approvals trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
danlipert committed Jun 8, 2020
1 parent be0f3e0 commit b6dad7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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() {
is_metamask_unlocked = await window.ethereum._metamask.isUnlocked();

try {
if (is_metamask_unlocked && is_metamask_approved) {
if (!is_metamask_unlocked || !is_metamask_approved) {
var start_time = ((new Date()).getTime() / 1000);

await ethereum.enable();
Expand Down

0 comments on commit b6dad7f

Please sign in to comment.