sparkletown/sparkle

View on GitHub
src/hooks/useUploadProfilePictureHandler.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function useUploadProfilePictureHandler has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const useUploadProfilePictureHandler = (
  setError: (error: string) => void,
  user?: firebase.UserInfo
) => {
  const firebase = useFirebase();
Severity: Minor
Found in src/hooks/useUploadProfilePictureHandler.ts - About 1 hr to fix

Avoid too many return statements within this function.
Open

        return undefined;
Severity: Major
Found in src/hooks/useUploadProfilePictureHandler.ts - About 30 mins to fix

There are no issues that match your filters.

Category
Status