Start working on allowing previous profile picture to be removed. Not working rn but I think it is because of persmissions for that storage bucket.

This commit is contained in:
2025-05-31 11:20:27 -05:00
parent 7238403f39
commit dc7cec8539
4 changed files with 98 additions and 85 deletions

View File

@ -27,7 +27,8 @@ export const AvatarUpload = ({ onAvatarUploaded }: AvatarUploadProps) => {
maxWidth: 500,
maxHeight: 500,
quality: 0.8,
}
},
prevPath: profile?.avatar_url,
});
if (result.success && result.path) {
await onAvatarUploaded(result.path);