Skip to content

Commit

Permalink
fix little errors
Browse files Browse the repository at this point in the history
  • Loading branch information
scffs committed Nov 17, 2023
1 parent 7e5d675 commit d34d34e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/UI/Marks/MarksByGroup.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FC } from 'react'
import { FC } from 'preact/compat'
import {
Card,
CardGrid,
Expand All @@ -20,7 +20,7 @@ interface IMarksByGroup {

const MarksByGroup: FC<IMarksByGroup> = ({ marksForSubject }) => {
if (!marksForSubject) {
return NoData
return <NoData />
}

const subjectMarksMap = createSubjectMarksMap(marksForSubject)
Expand Down
4 changes: 2 additions & 2 deletions src/utils/setLessonDetails.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Lesson } from '@diary-spo/shared'
import { Lesson, LessonWorkTypeKeys } from '@diary-spo/shared'
import { formatLessonName } from './formatted/formatLessonName'

/**
Expand Down Expand Up @@ -28,7 +28,7 @@ export const setLessonDetails = (lesson: Lesson) => {
gradebook: {
absenceType: gradebook?.absenceType,
id: gradebook?.id || 0,
lessonType: gradebook?.lessonType || 'Не задан',
lessonType: gradebook?.lessonType || ('Не задан' as LessonWorkTypeKeys),
tasks: tasksArray,
themes: gradebook?.themes,
},
Expand Down

0 comments on commit d34d34e

Please sign in to comment.