From 1c1430ba5c8771679b0cd99bc64db8adee97dbea Mon Sep 17 00:00:00 2001 From: enes Date: Fri, 8 Nov 2024 11:02:07 +0100 Subject: [PATCH] fix(mod): use existing uuid for edit --- src/components/ModForm.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/ModForm.tsx b/src/components/ModForm.tsx index c3f5a02..7411c47 100644 --- a/src/components/ModForm.tsx +++ b/src/components/ModForm.tsx @@ -192,7 +192,7 @@ export const ModForm = ({ existingModData }: ModFormProps) => { return } - const uuid = uuidv4() + const uuid = formState.dTag || uuidv4() const currentTimeStamp = now() const aTag = @@ -204,7 +204,7 @@ export const ModForm = ({ existingModData }: ModFormProps) => { pubkey: hexPubkey, content: formState.body, tags: [ - ['d', formState.dTag || uuid], + ['d', uuid], ['a', aTag], ['r', formState.rTag], ['t', T_TAG_VALUE],