Skip to content

Commit

Permalink
🐛 (workspace) Correctly display Guest tag in members list
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Nov 4, 2022
1 parent ad9be92 commit 4d38726
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,13 @@ const WorkspaceRoleMenuButton = ({
)
}

export const convertWorkspaceRoleToReadable = (role: WorkspaceRole) => {
export const convertWorkspaceRoleToReadable = (role: WorkspaceRole): string => {
switch (role) {
case WorkspaceRole.ADMIN:
return 'Admin'
case WorkspaceRole.MEMBER:
return 'Member'
case WorkspaceRole.GUEST:
return 'Guest'
}
}

0 comments on commit 4d38726

Please sign in to comment.