Browse Source

Render hat titles

JC Brand 5 years ago
parent
commit
0f73b27fcd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/components/message.js

+ 1 - 1
src/components/message.js

@@ -215,7 +215,7 @@ class Message extends CustomElement {
 
     renderAvatarByline () {
         return html`
-            ${ this.hats.map(role => html`<span class="badge badge-secondary">${role}</span>`) }
+            ${ this.hats.map(h => html`<span class="badge badge-secondary">${h.title}</span>`) }
             <time timestamp="${this.time}" class="chat-msg__time">${this.pretty_time}</time>
         `;
     }