Skip to content

Commit

Permalink
Merge pull request #1915 from talltorp/patch-1
Browse files Browse the repository at this point in the history
Use avatarInitial instead of avatarTitle in diff
  • Loading branch information
MinThaMie committed Jul 10, 2023
2 parents e9e7047 + cbba151 commit b22b81a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions guides/release/components/helper-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ We can then use this helper in the component's template to get the first letter
```handlebars {data-filename="app/components/message.hbs" data-diff="-3,+4"}
<Message::Avatar
@title="{{@username}}'s avatar"
@initial={{@avatarTitle}}
@initial={{@avatarInitial}}
@initial={{this.substring @username 0 1}}
@isActive={{@userIsActive}}
class={{if @isCurrentUser "current-user"}}
Expand Down Expand Up @@ -197,7 +197,7 @@ We can then use this helper in the component's template to get the first letter
```handlebars {data-filename="app/components/message.hbs" data-diff="-3,+4"}
<Message::Avatar
@title="{{@username}}'s avatar"
@initial={{@avatarTitle}}
@initial={{@avatarInitial}}
@initial={{substring @username 0 1}}
@isActive={{@userIsActive}}
class={{if @isCurrentUser "current-user"}}
Expand Down

0 comments on commit b22b81a

Please sign in to comment.