RocketChat/Rocket.Chat

View on GitHub
apps/meteor/client/views/room/hooks/useUserInfoActions/actions/useReportUser.tsx

Summary

Maintainability
A
1 hr
Test Coverage

Function useReportUser has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const useReportUser = (user: Pick<IUser, '_id' | 'username' | 'name'>): UserInfoAction | undefined => {
    const { _id: uid, username, name } = user;
    const ownUserId = useUserId();
    const setModal = useSetModal();

    There are no issues that match your filters.

    Category
    Status