Lambda-School-Labs/startup-grant-database-fe

View on GitHub
src/store/grants/useGrantActions.tsx

Summary

Maintainability
B
4 hrs
Test Coverage

Function useGrantActions has 128 lines of code (exceeds 50 allowed). Consider refactoring.
Open

export const useGrantActions = () => {
    const dispatch = useDispatch();

    const fetchGrants = useCallback(() => {
        dispatch({type: GrantTypes.FETCH_GRANTS_START});
Severity: Major
Found in src/store/grants/useGrantActions.tsx - About 4 hrs to fix

    There are no issues that match your filters.

    Category
    Status