zeitgeistpm / ui

Zeitgeist general prediction markets application.
https://app.zeitgeist.pm
Apache License 2.0
16 stars 4 forks source link

[Court] Why confirm Recast Vote? #2076

Open maltekliemann opened 8 months ago

maltekliemann commented 8 months ago

I have to confirm that I want to recast my vote. Why? I'm not even signing a transaction, I'm just moving into a slightly different UI.

Screenshot 2023-12-09 at 00 07 36
yornaath commented 8 months ago

The client saves some state about what vote the user has commited and if they have downloaded the seed, so that they dont have to take any other steps when revealing since the client has the salt used and vote used "commited" to memory. When recasting I have to clear this state so if they confirm and then dont recast they will have to manually set the voted outcome and restore with the downloaded file when revealing. So I think its good to have a second step here to prevent that from happening by clicking the button once.

maltekliemann commented 8 months ago

Why isn't the state just cleared if I sign the transaction a second time? It might also be a good idea to inform the user that this will clear the state.