wallet-connect-button-react 1.0.5 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +4 -0
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -615,6 +615,10 @@ function WalletConnectButton(_a) {
|
|
|
615
615
|
.catch(function (error) {
|
|
616
616
|
console.log(error.message);
|
|
617
617
|
setError(error.message);
|
|
618
|
+
// Remove session_token from URL after failed request
|
|
619
|
+
removeSearchParam('session_token');
|
|
620
|
+
if (nonce)
|
|
621
|
+
removeSearchParam('nonce');
|
|
618
622
|
setLoading(false);
|
|
619
623
|
});
|
|
620
624
|
}, [searchParams, onSuccess]);
|