department-of-veterans-affairs/vets-website

View on GitHub
src/applications/mhv-medications/components/shared/LastFilledInfo.jsx

Summary

Maintainability
A
1 hr
Test Coverage

Function LastFilledInfo has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const LastFilledInfo = rx => {
  const { dispStatus, orderedDate, sortedDispensedDate } = rx;
  let nonVA = false;
  let showLastFilledDate = false;
  if (dispStatus === dispStatusObj.nonVA) {

    There are no issues that match your filters.

    Category
    Status