diff --git a/plugins/poll/assets/javascripts/widgets/discourse-poll.js.es6 b/plugins/poll/assets/javascripts/widgets/discourse-poll.js.es6 index 21d24f512c6..1f71dea0218 100644 --- a/plugins/poll/assets/javascripts/widgets/discourse-poll.js.es6 +++ b/plugins/poll/assets/javascripts/widgets/discourse-poll.js.es6 @@ -454,7 +454,9 @@ createWidget("discourse-poll-info", { function transformUserFieldToLabel(fieldName) { let transformed = fieldName.split("_").filter(Boolean); - transformed[0] = classify(transformed[0]); + if (transformed.length > 1) { + transformed[0] = classify(transformed[0]); + } return transformed.join(" "); }