We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 835e23e commit 96aa633Copy full SHA for 96aa633
1 file changed
hwproj.front/src/components/Tasks/TaskQuestions.tsx
@@ -137,7 +137,7 @@ const TaskQuestions: FC<ITaskQuestionsProps> = (props) => {
137
const isAnswered = q.answer !== null
138
return <Grid item>
139
<Alert severity={isAnswered ? "success" : "info"}
140
- icon={isCurrentStudent
+ icon={student !== undefined
141
? <Avatar style={{width: 30, height: 30}} {...AvatarUtils.stringAvatar(props.student!)} />
142
: q.isPrivate
143
? <PersonIcon fontSize={"small"}/>
0 commit comments