Wallet Selection Optimization (#1680)
This commit is contained in:
parent
4f6dde23c0
commit
5733833f5e
|
@ -390,12 +390,14 @@ const WalletDecrypt = withRouter<Props>(
|
||||||
}
|
}
|
||||||
|
|
||||||
let timeout = 0;
|
let timeout = 0;
|
||||||
const web3Available = await isWeb3NodeAvailable();
|
if (wallet.attemptUnlock) {
|
||||||
if (wallet.attemptUnlock && web3Available) {
|
const web3Available = await isWeb3NodeAvailable();
|
||||||
// timeout is only the maximum wait time before secondary view is shown
|
if (web3Available) {
|
||||||
// send view will be shown immediately on web3 resolve
|
// timeout is only the maximum wait time before secondary view is shown
|
||||||
timeout = 1000;
|
// send view will be shown immediately on web3 resolve
|
||||||
wallet.unlock();
|
timeout = 1500;
|
||||||
|
wallet.unlock();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
window.setTimeout(() => {
|
window.setTimeout(() => {
|
||||||
|
|
Loading…
Reference in New Issue