Skip to content

Commit 96aa633

Browse files
committed
TaskQuestions: показывать аватарку студента
1 parent 835e23e commit 96aa633

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

hwproj.front/src/components/Tasks/TaskQuestions.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ const TaskQuestions: FC<ITaskQuestionsProps> = (props) => {
137137
const isAnswered = q.answer !== null
138138
return <Grid item>
139139
<Alert severity={isAnswered ? "success" : "info"}
140-
icon={isCurrentStudent
140+
icon={student !== undefined
141141
? <Avatar style={{width: 30, height: 30}} {...AvatarUtils.stringAvatar(props.student!)} />
142142
: q.isPrivate
143143
? <PersonIcon fontSize={"small"}/>

0 commit comments

Comments
 (0)