Skip to content

Commit c37792b

Browse files
committed
TaskQuestions: не показывать ссылку студенту
1 parent 24c2dc5 commit c37792b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ const TaskQuestions: FC<ITaskQuestionsProps> = (props) => {
168168
</Button>
169169
</Stack>
170170
}>
171-
{student && <ReactLink style={{color: "inherit", cursor: "pointer"}}
172-
to={`/task/${props.taskId}/${student.userId}`}>
171+
{props.forMentor && student && <ReactLink style={{color: "inherit", cursor: "pointer"}}
172+
to={`/task/${props.taskId}/${student.userId}`}>
173173
<Stack alignItems={"center"} direction={"row"}>
174174
<Typography variant={"subtitle2"}>
175175
{student.surname + " " + student.name}

0 commit comments

Comments
 (0)