We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4c56166 + e9f0a1c commit a97a93bCopy full SHA for a97a93b
src/main/webapp/static/js/web3provider.js
@@ -85,7 +85,7 @@ async function disconnect() {
85
console.log("Killing the wallet connection", provider);
86
87
// TODO: Which providers have close method?
88
- if (provider.close) {
+ if (provider && provider.close) {
89
await provider.close();
90
91
// If the cached provider is not cleared,
@@ -94,7 +94,9 @@ async function disconnect() {
94
// Depending on your use case you may want or want not his behavir.
95
provider = null;
96
}
97
- await web3Modal.clearCachedProvider();
+ if (web3Modal) {
98
+ await web3Modal.clearCachedProvider();
99
+ }
100
101
102
/**
0 commit comments