From a473b7914bf0450e48bb8e3034a0d826ce41c3ce Mon Sep 17 00:00:00 2001 From: zmeyer44 Date: Thu, 19 Oct 2023 13:41:09 -0400 Subject: [PATCH] redundancy for picture and image kind 0 fields --- components/Modals/EditProfile.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/Modals/EditProfile.tsx b/components/Modals/EditProfile.tsx index 590eb86..65f80c0 100644 --- a/components/Modals/EditProfile.tsx +++ b/components/Modals/EditProfile.tsx @@ -48,7 +48,7 @@ export default function EditProfileModal() { async function handleSubmit(userData: EditProfileType) { setIsLoading(true); - const content = JSON.stringify(userData); + const content = JSON.stringify({ ...userData, picture: userData.image }); const result = await createEvent(ndk!, { content, kind: 0,