DemocracyEarth / wallet

Censorship resistant democracies.
https://democracy.earth
MIT License
1.5k stars 286 forks source link

Profile does not meet voter requisites error #417

Closed paula-berman closed 5 years ago

paula-berman commented 5 years ago

Got "Your profile does not meet voter requisites".

screen shot 2018-11-16 at 16 55 50

But I had just created that post with another account and didn't add any voter requisites.

Also, I had VOTE in the account the I was using to vote, so that wasn't it.

This was the post:

https://votest.democracy.earth/2018/11/16/we-should-vote-every-day-pcfm

medied commented 5 years ago

Seeing the same behavior from others (#419), the cause of this issue seems to be cache mismatch between Metamask and Sovereign, part of more fine-tuning that's needed

medied commented 5 years ago

Issue is that voteEnabled was getting set only onCreated for the ballot templates, so with a new user login (without a page refresh) the conditionals for _cryptoVote would end up in the wrong place. Refreshing voteEnabled at the beginning of _cryptoVote ensures it works as expected even when there is a new user login.