# Avatar still shown in "voted" pane after vote removed

**URL:** <https://meta.discourse.org/t/avatar-still-shown-in-voted-pane-after-vote-removed/66480>\
**Category:** Bug\
**Tags:** topic-voting\
**Created:** [2017 年7 月 20 日 02:13 UTC](https://meta.discourse.org/t/avatar-still-shown-in-voted-pane-after-vote-removed/66480 "2017-07-20T02:13:26Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

作者： ![barryvan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/barryvan/32/82635_2.png) [@barryvan](https://meta.discourse.org/u/barryvan)\
发布日期： [2017 年7 月 20 日 02:22 UTC](https://meta.discourse.org/t/avatar-still-shown-in-voted-pane-after-vote-removed/66480/2 "2017-07-20T02:22:41Z")

</div>

I _think_ this is because `this.scheduleRerender()` isn’t being called after the `removeVote()` ajax request returns. I’ve opened a PR to resolve this; in this PR, I’ve also moved `this.scheduleRerender()` so that it’s always called at the end of the `addVote()` ajax promise resolution.

[https://github.com/discourse/discourse-voting/pull/26](https://github.com/discourse/discourse-voting/pull/26)

---

_[View the full topic](https://meta.discourse.org/t/avatar-still-shown-in-voted-pane-after-vote-removed/66480)._
