Skip to content

Commit

Permalink
Fix: Capitalize the first letter of user roles for improved UI (#798)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhairyashiil authored Jan 5, 2025
1 parent cb012e7 commit 3e1360e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react/src/views/Message/MessageHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ const MessageHeader = ({
css={styles.userRole}
className={appendClassNames('ec-message-user-role')}
>
admin
Admin
</Box>
)}

Expand All @@ -138,7 +138,7 @@ const MessageHeader = ({
css={styles.userRole}
className={appendClassNames('ec-message-user-role')}
>
{role}
{role.charAt(0).toUpperCase() + role.slice(1)}
</Box>
))}
</>
Expand Down

0 comments on commit 3e1360e

Please sign in to comment.