From 462ba85fe86b17eb907574de7be6bfb8ae63986b Mon Sep 17 00:00:00 2001 From: Primakov Alexandr Alexandrovich Date: Wed, 8 Jan 2025 18:33:02 +0300 Subject: [PATCH] check exam link to render --- src/pages/course-list/course-details.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/pages/course-list/course-details.tsx b/src/pages/course-list/course-details.tsx index e2d6ae4..f75faac 100644 --- a/src/pages/course-list/course-details.tsx +++ b/src/pages/course-list/course-details.tsx @@ -1,7 +1,7 @@ import React from 'react' import dayjs from 'dayjs' import { Link as ConnectedLink } from 'react-router-dom' -import { getNavigationsValue, getHistory } from '@brojs/cli' +import { getNavigationValue, getHistory } from '@brojs/cli' import { Stack, Heading, Link, Button, Tooltip, Box } from '@chakra-ui/react' import { useAppSelector } from '../../__data__/store' @@ -27,23 +27,23 @@ export const CourseDetails = ({ populatedCourse }: CourseDetailsProps) => { {isTeacher(user) && ( Экзамен: {exam?.name}{' '} - {exam && ( + {exam && getNavigationValue('exam.main') && getNavigationValue('link.exam.details') && (