src/applications/static-pages/representative-status/hooks/useRepresentativeStatus.js
Function useRepresentativeStatus
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function useRepresentativeStatus() {
const [representative, setRepresentative] = useState(null);
const [isLoading, setIsLoading] = useState(true);
const [error, setError] = useState(null);
Function fetchRepStatus
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const fetchRepStatus = async () => {
setIsLoading(true);
setError(null);
try {