thiskevinwang/coffee-code-climb

View on GitHub
src/hooks/rds/useUploadAvatar.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function uploadAvatar has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  const uploadAvatar = async (file: File, imgSrc: string) => {
    if (!file) throw new Error("Missing a required 'file' argument")
    setIsLoading(true)

    try {
Severity: Minor
Found in src/hooks/rds/useUploadAvatar.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status