ahbeng/NUSMods

View on GitHub
website/src/views/components/notfications/Announcements.tsx

Summary

Maintainability
A
1 hr
Test Coverage

Function Announcements has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const Announcements = memo(() => {
  const [isOpen, setIsOpen] = useState(() => {
    if (!enableAnnouncements) return false;
    if (key) return !storage.getItem(key);
    return true;
Severity: Minor
Found in website/src/views/components/notfications/Announcements.tsx - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status