department-of-veterans-affairs/vets-website

View on GitHub
src/applications/personalization/dashboard/useDowntimeApproachingRenderMethod.jsx

Summary

Maintainability
A
1 hr
Test Coverage

Function useDowntimeApproachingRenderMethod has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export default function useDowntimeApproachingRenderMethod() {
  const [modalDismissed, setModalDismissed] = useState(false);

  return (downtime, children) => {
    if (downtime.status === externalServiceStatus.downtimeApproaching) {

    There are no issues that match your filters.

    Category
    Status