Skip to content

Commit

Permalink
fix: simplify code after review
Browse files Browse the repository at this point in the history
  • Loading branch information
ihor-romaniuk committed Jan 5, 2024
1 parent be5c8c2 commit 6dec1eb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/course-unit/CourseUnit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ const CourseUnit = ({ courseId }) => {
} = useSelector(getProcessingNotification);

if (isLoading) {
// eslint-disable-next-line react/jsx-no-useless-fragment
return <></>;
return null;
}

return (
Expand Down

0 comments on commit 6dec1eb

Please sign in to comment.