Skip to content

Commit c980cb7

Browse files
authored
fix: participants (#978)
1 parent 57dd83b commit c980cb7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

frontend/src/components/CardBoard/CardBody/CardEnd.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ const CardEnd: React.FC<CardEndProps> = React.memo(
3838

3939
const boardTypeCaption = useMemo(() => {
4040
if (isSubBoard && !isDashboard) return 'Responsible';
41-
if (isSubBoard && !team && isDashboard) return 'Team';
41+
if (isSubBoard && isDashboard) return 'Team';
4242
if (team) return 'Team';
4343
return 'Personal';
4444
}, [isDashboard, isSubBoard, team]);
4545

4646
const boardOwnerName = useMemo(() => {
47-
if (team) {
47+
if (team && !isSubBoard) {
4848
return team?.name;
4949
}
5050
if (isSubBoard && isDashboard && index !== undefined) {
@@ -67,7 +67,7 @@ const CardEnd: React.FC<CardEndProps> = React.memo(
6767
{boardOwnerName}
6868
</Text>
6969
<CardAvatars
70-
listUsers={!team ? users : team.users}
70+
listUsers={!team || isSubBoard ? users : team.users}
7171
responsible={false}
7272
teamAdmins={false}
7373
userId={userId}

0 commit comments

Comments
 (0)