We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When requesting that a user connects it's wallet,if the user cancels the operation in the pop-up, the arconnect overlay does not get removed.
Connection code:
const asyncConnectWallet = async (dispatch: Dispatch<WalletAction>) => { try { const currentPermissions = await window.arweaveWallet.getPermissions(); if (!_.isEqual(currentPermissions, DEFAULT_PERMISSSIONS)) { await window.arweaveWallet.connect(DEFAULT_PERMISSSIONS); } const addr = await window.arweaveWallet.getActiveAddress(); dispatch({ type: 'wallet_connected', address: addr }); const winstonBalance = await arweave.wallets.getBalance(addr); dispatch({ type: 'wallet_balance_updated', balance: parseFloat(arweave.ar.winstonToAr(winstonBalance)), }); } catch (error) { console.log(error); } };
I can catch the error but i dont know how to handle to remove the overlay.
The text was updated successfully, but these errors were encountered:
Solved in 1.0
Sorry, something went wrong.
No branches or pull requests
Description
When requesting that a user connects it's wallet,if the user cancels the operation in the pop-up, the arconnect overlay does not get removed.
Additional Information
Result after cancelling connection
![image](https://user-images.githubusercontent.com/43357028/233505294-0aec9420-70f8-4396-a79d-0927b15790d8.png)
Connection code:
I can catch the error but i dont know how to handle to remove the overlay.
The text was updated successfully, but these errors were encountered: