Skip to content

Commit

Permalink
fix sonar issue
Browse files Browse the repository at this point in the history
  • Loading branch information
PavloDolia committed Jul 29, 2024
1 parent 0777383 commit ce43eeb
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,7 @@ const SubjectsStep = ({ btnsBox }: SubjectsStepProps) => {
const fetchSubjectHandler = () => setSubjectIsFetched(true)

const getSubjectsNames = useCallback(
() =>
subjectService.getSubjectsNames(
subjects.category && subjects.category._id
),
() => subjectService.getSubjectsNames(subjects.category?._id || null),
[subjects.category]
)

Expand Down

0 comments on commit ce43eeb

Please sign in to comment.