# Editing a poll changes votes to NaN%

**URL:** https://meta.discourse.org/t/editing-a-poll-changes-votes-to-nan/27879
**Category:** Bug
**Created:** [April 23, 2015, 8:33pm UTC](https://meta.discourse.org/t/editing-a-poll-changes-votes-to-nan/27879 "2015-04-23T20:33:09Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![downey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/downey/32/166878_2.png) [@downey](https://meta.discourse.org/u/downey)
#### Post date: [April 23, 2015, 8:33pm UTC](https://meta.discourse.org/t/editing-a-poll-changes-votes-to-nan/27879/1 "2015-04-23T20:33:09Z")

</div>

**Reproduce:**

1. Create a new multiple-choice poll that follows some lead-in text.
2. Cast at least one vote.
3. Edit the post and change only (that preceding text).

**Expected results:**

- The poll still works with updated text.

**Actual results:**

- Vote totals are gone and the following is displayed with no way to cast further votes:

![](https://global.discourse-cdn.com/meta/original/3X/a/4/a4d1d0d7fe20effe627c347c4bceb63774d45b54.png)

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [April 25, 2015, 10:12pm UTC](https://meta.discourse.org/t/editing-a-poll-changes-votes-to-nan/27879/2 "2015-04-25T22:12:43Z")

</div>

This should be fixed now 🐁

[https://github.com/discourse/discourse/commit/151dea40885b3191379da2df5ae44c4235ddaab0](https://github.com/discourse/discourse/commit/151dea40885b3191379da2df5ae44c4235ddaab0)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [April 26, 2015, 1:06am UTC](https://meta.discourse.org/t/editing-a-poll-changes-votes-to-nan/27879/3 "2015-04-26T01:06:11Z")

</div>


