diff --git a/plugins/poll/assets/javascripts/widgets/discourse-poll.js.es6 b/plugins/poll/assets/javascripts/widgets/discourse-poll.js.es6 index 6b476dea10b..471f748d21e 100644 --- a/plugins/poll/assets/javascripts/widgets/discourse-poll.js.es6 +++ b/plugins/poll/assets/javascripts/widgets/discourse-poll.js.es6 @@ -791,7 +791,7 @@ export default createWidget("discourse-poll", { (attrs.post.get("topic.archived") && !staffOnly) || (this.isClosed() && !staffOnly); - const newAttrs = jQuery.extend({}, attrs, { + const newAttrs = Object.assign({}, attrs, { canCastVotes: this.canCastVotes(), hasVoted: this.hasVoted(), isAutomaticallyClosed: this.isAutomaticallyClosed(),