src/hooks/useUploadProfilePictureHandler.ts
Function useUploadProfilePictureHandler
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const useUploadProfilePictureHandler = (
setError: (error: string) => void,
user?: firebase.UserInfo
) => {
const firebase = useFirebase();
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return undefined;
- Create a ticketCreate a ticket