tokamak-network / simple-staking-v2

https://simple-staking-v2.vercel.app
0 stars 1 forks source link

[internal test]: Issues related to connecting wallet #48

Open Shailu-s opened 2 hours ago

Shailu-s commented 2 hours ago

Can you specify where the bug exists?

Stake

Which device are you seeing the problem on? (can select multiple)

Desktop

Which OS are you seeing the problem on? (can select multiple)

Others

What browsers are you seeing the problem on? (can select multiple)

Chrome

What happened?

There are two issues related to the wallet connection dropdown:

Issue 1: When attempting to connect to Metamask, a popup appears prompting for the wallet password. If the user closes this popup without entering the password, an error message stating "Error connecting to wallet" is displayed. However, the error persists even after closing the dropdown,
When the user clicks the "Connect Wallet" dropdown again, the error should reset, and the Metamask icon and name should reappear, Additionally, the CSS styling should be updated to reflect the error state more clearly.

Issue 2: There is inconsistent cursor behavior when moving in and out of the Connect Wallet dropdown. The switch between the arrow cursor and pointer cursor is not consistent when hovering over the dropdown options (Metamask, Trezor). In some cases, even after moving the cursor out of the dropdown, the pointer cursor persists. Similarly, when moving back into the dropdown, the pointer cursor can sometimes remain, resulting in inconsistent and unexpected cursor behavior.

Steps to Reproduce:

Issue 1:

Issue 2:

Expected Behavior: Issue 1: Closing the Metamask popup without entering a password should not result in a persistent error state,Reopening the dropdown should reset the error and allow the user to attempt connecting again. The styling of the error css should also be updated.

Issue 2: The cursor should consistently switch between arrow and pointer when hovering over dropdown options, and the pointer cursor should not persist when the cursor moves out of the dropdown.

Relevant log output

No response

Upload any screenshots to aid with explaining the bug.

Issue 1

Screencast from 2024-10-11 13-23-27.webm

image

Issue 2

https://github.com/user-attachments/assets/75254ae0-7b3e-43d6-bc89-dab69b176027