# Rótulos em destaque quebram a página de perfil do usuário

**URL:** <https://meta.discourse.org/t/featured-badges-breaks-user-profile-page/361981>\
**Category:** General\
**Created:** [15 Abril , 2025 21:32 UTC](https://meta.discourse.org/t/featured-badges-breaks-user-profile-page/361981 "2025-04-15T21:32:17Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)\
**Post date:** [16 Abril , 2025 20:08 UTC](https://meta.discourse.org/t/featured-badges-breaks-user-profile-page/361981/7 "2025-04-16T20:08:36Z")

</div>

Vamos lá:

> <https://github.com/paviliondev/discourse-post-badges-plugin/pull/4>
>
> Meta: https://meta.discourse.org/t/featured-badges-breaks-user-profile-page/3619…81
> 
> Followup #3.
> 
> This PR fixes an error that occurs when a user without badges visits their profile. The featured badges selector doesn't appear, and instead, it throws an error in the console. 
> 
> \`\`\`
> Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'split')
> at l.\<anonymous\> (user-featured-badges.js:12:1)
> \`\`\`
> 
> Before: 
> !\[image\](https://github.com/user-attachments/assets/2725a729-eb7d-44a9-9ff1-2ffc5a7d3331)
> 
> After:
> !\[chrome\_ToPmxk9NCN\](https://github.com/user-attachments/assets/6351327a-4a48-4b6d-95cc-9f1cadcf98c5)

> [@Roi](#):
>
> A propósito, eu executo isso como um plugin. Está correto ou devo executá-lo como um componente de tema?

A versão do TC não permite que os usuários selecionem os distintivos em seus perfis. É uma configuração global para todos os usuários, que é a principal diferença.

---

_[View the full topic](https://meta.discourse.org/t/featured-badges-breaks-user-profile-page/361981)._
