-
Notifications
You must be signed in to change notification settings - Fork 510
New issue
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
Candidates are displayed on the screen in duplicate #2
Comments
I have noticed the same thing, I think it's got something to do with the async calls from the promises, however, I couldn't identify the root of the problem myself. |
You can just update the listenEvent to the below and it will work: listenForEvents: function() { |
Thanks peter0o, it is prefect ! |
@bardawilpeter But if you change account and refresh again, the first refresh double render again. |
@bardawilpeter I agree with killermu94. As soon as you do the first refresh, it is still double rendered. The second refresh works correctly |
I also had this issue, another fix is to handle the promises differently. Group all the promise calls to get candidates to an array, then waiting until all of them are resolved to add them to the dom.
|
I added a watch event for account change. Added App.listenForAccountChange() in the initContract function.
|
The text was updated successfully, but these errors were encountered: