src/hooks/rds/useUploadAvatar.ts
Function uploadAvatar
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const uploadAvatar = async (file: File, imgSrc: string) => {
if (!file) throw new Error("Missing a required 'file' argument")
setIsLoading(true)
try {