ahbeng/NUSMods

View on GitHub
website/src/views/today/BeforeLessonCard.tsx

Summary

Maintainability
A
1 hr
Test Coverage

Function BeforeLessonCard has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const BeforeLessonCard: React.FC<Props> = (props) => {
  const { nextLesson, currentTime, marker } = props;
  const nextLessonDate = getStartTimeAsDate(nextLesson);
  const hoursTillNextLesson = differenceInHours(nextLessonDate, props.currentTime);

Severity: Minor
Found in website/src/views/today/BeforeLessonCard.tsx - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status