From c8623e438a5c0341cb40b23c5afd8d81e899fee7 Mon Sep 17 00:00:00 2001 From: Lulox Date: Sat, 28 Sep 2024 22:47:13 -0300 Subject: [PATCH] Bug fix --- packages/nextjs/app/profile/[address]/page.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/nextjs/app/profile/[address]/page.tsx b/packages/nextjs/app/profile/[address]/page.tsx index b89e885..31c5ffc 100644 --- a/packages/nextjs/app/profile/[address]/page.tsx +++ b/packages/nextjs/app/profile/[address]/page.tsx @@ -61,6 +61,10 @@ const ProfilePage: NextPage = () => { const handleEditProfile = async () => { try { + // Unset the current profile picture + setProfilePicture(""); + // setPreviewImage(null); + await profileInfoWriteAsync({ functionName: "setProfile", args: [username, bio, profilePicture, website],