From fb58e9d15be9f82ce94621832095029ab679a463 Mon Sep 17 00:00:00 2001 From: Owocki Date: Wed, 20 May 2020 08:25:11 -0600 Subject: [PATCH] wait for web3 to be unlocked before calling waitforweb3 --- app/assets/ens/pending.js | 2 +- app/assets/v2/js/shared.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/ens/pending.js b/app/assets/ens/pending.js index caa40a37cfa..c40cd151595 100644 --- a/app/assets/ens/pending.js +++ b/app/assets/ens/pending.js @@ -1,5 +1,5 @@ var waitforWeb3 = function(callback) { - if (document.web3network) { + if (document.web3network && document.web3network != 'locked') { callback(); } else { var wait_callback = function() { diff --git a/app/assets/v2/js/shared.js b/app/assets/v2/js/shared.js index 5eeb341ac24..5bcffc6b27c 100644 --- a/app/assets/v2/js/shared.js +++ b/app/assets/v2/js/shared.js @@ -214,7 +214,7 @@ var getTimeFromDate = function(date) { }; var waitforWeb3 = function(callback) { - if (document.web3network) { + if (document.web3network && document.web3network != 'locked') { callback(); } else { var wait_callback = function() {