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:
@ -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);
|
||||
|
Reference in New Issue
Block a user