mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 06:20:23 +08:00
UX: Only add user-badge-buttons
wrapper when badges exist (#30060)
Followup to 2513339955ebdfa457a5d6126716091110045e37
This commit is contained in:
parent
9389bf295c
commit
c3e87b5036
@ -141,7 +141,7 @@ export default createWidget("poster-name", {
|
||||
}
|
||||
}
|
||||
|
||||
if (attrs.badgesGranted) {
|
||||
if (attrs.badgesGranted?.length) {
|
||||
const badges = [];
|
||||
attrs.badgesGranted.forEach((badge) => {
|
||||
// Alter the badge description to show that the badge was granted for this post.
|
||||
|
Loading…
x
Reference in New Issue
Block a user