department-of-veterans-affairs/vets-website

View on GitHub
src/applications/login/components/MockAuthButton.jsx

Summary

Maintainability
A
1 hr
Test Coverage

Function MockAuthButton has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export default function MockAuthButton() {
  const [authType, setAuthType] = useState(CSP_IDS.LOGIN_GOV);
  const [mockLoginError, setMockLoginError] = useState('');
  return [environments.LOCALHOST, environments.VAGOVDEV].includes(
    environment.getRawBuildtype(),
Severity: Minor
Found in src/applications/login/components/MockAuthButton.jsx - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status