Fixed avatar image not displaying
This commit is contained in:
1 parent
7f7226d6e5
commit
31e4c7b110
3 files changed
+7
-24
No files matched your search
@@ -116,7 +116,6 @@ const ProfilePanel = () => {
|
||||
// Resets picture-related states and clears interval
|
||||
const removePicture = () => {
|
||||
errors["picture"] && clearError("picture");
|
||||
setFile({ src: "placeholder" });
|
||||
clearInterval(intervalRef.current); // interrupt interval if image upload is canceled prior to completing the process
|
||||
setProgress({ value: 0, isLoading: false });
|
||||
};
|
||||
@@ -154,7 +153,6 @@ const ProfilePanel = () => {
|
||||
|
||||
// Removes current profile image from UI
|
||||
const handleDeletePicture = () => {
|
||||
setFile({ src: "placeholder" });
|
||||
// TODO - implement delete picture function
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user