Skip to content

Commit c12255d

Browse files
committed
Show ... if team name is not available
1 parent 204ae21 commit c12255d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/cloud/components/atoms/TeamIcon.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ const TeamIcon = ({ team }: TeamIconProps) => {
1919
if (team.icon == null) {
2020
return (
2121
<StyledFillerIcon>
22-
<span className='wrapper'>{team.name.substr(0, 2)}</span>
22+
<span className='wrapper'>
23+
{team.name != null ? team.name.substr(0, 2) : '...'}
24+
</span>
2325
</StyledFillerIcon>
2426
)
2527
}

0 commit comments

Comments
 (0)