RocketChat/Rocket.Chat

View on GitHub
apps/meteor/client/views/admin/users/hooks/useConfirmOwnerChanges.tsx

Summary

Maintainability
A
1 hr
Test Coverage

Function useConfirmOwnerChanges has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const useConfirmOwnerChanges = (): ((
    action: (confirm?: boolean) => Promise<void>,
    modalProps: Pick<ComponentProps<typeof ConfirmOwnerChangeWarningModal>, 'contentTitle' | 'confirmText'>,
    onChange: () => void,
) => Promise<void>) => {

    There are no issues that match your filters.

    Category
    Status