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

View on GitHub
src/store/user/useUserActions.tsx

Summary

Maintainability
B
4 hrs
Test Coverage

Function useUserActions has 145 lines of code (exceeds 50 allowed). Consider refactoring.
Open

export const useUserActions = () => {
    const dispatch = useDispatch();
    const getUserFromAuth0 = useCallback(
        (token: string) => {
            dispatch({type: UserTypes.FETCH_USER_START});
Severity: Major
Found in src/store/user/useUserActions.tsx - About 4 hrs to fix

    There are no issues that match your filters.

    Category
    Status