mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix account address update after using signer
This commit is contained in:
@@ -178,6 +178,7 @@ const ReplyModal = ({ isOpen, closeModal }) => {
|
|||||||
...prevPublishCommentOptions,
|
...prevPublishCommentOptions,
|
||||||
author: {
|
author: {
|
||||||
displayName: nameRef.current.value || undefined,
|
displayName: nameRef.current.value || undefined,
|
||||||
|
address: account?.author.address,
|
||||||
},
|
},
|
||||||
content: commentRef.current.value || undefined,
|
content: commentRef.current.value || undefined,
|
||||||
link: linkRef.current.value || undefined,
|
link: linkRef.current.value || undefined,
|
||||||
@@ -215,7 +216,7 @@ const ReplyModal = ({ isOpen, closeModal }) => {
|
|||||||
signer,
|
signer,
|
||||||
author: {
|
author: {
|
||||||
...prevPublishCommentOptions.author,
|
...prevPublishCommentOptions.author,
|
||||||
address: signer?.address
|
address: signer?.address,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -445,6 +445,7 @@ const Board = () => {
|
|||||||
...prevPublishCommentOptions,
|
...prevPublishCommentOptions,
|
||||||
author: {
|
author: {
|
||||||
displayName: nameRef.current.value || undefined,
|
displayName: nameRef.current.value || undefined,
|
||||||
|
address: account?.author.address,
|
||||||
},
|
},
|
||||||
title: subjectRef.current.value || undefined,
|
title: subjectRef.current.value || undefined,
|
||||||
content: commentRef.current.value || undefined,
|
content: commentRef.current.value || undefined,
|
||||||
@@ -482,7 +483,7 @@ const Board = () => {
|
|||||||
signer,
|
signer,
|
||||||
author: {
|
author: {
|
||||||
...prevPublishCommentOptions.author,
|
...prevPublishCommentOptions.author,
|
||||||
address: signer?.address
|
address: signer?.address,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -292,6 +292,7 @@ const Catalog = () => {
|
|||||||
...prevPublishCommentOptions,
|
...prevPublishCommentOptions,
|
||||||
author: {
|
author: {
|
||||||
displayName: nameRef.current.value || undefined,
|
displayName: nameRef.current.value || undefined,
|
||||||
|
address: account?.author.address,
|
||||||
},
|
},
|
||||||
title: subjectRef.current.value || undefined,
|
title: subjectRef.current.value || undefined,
|
||||||
content: commentRef.current.value || undefined,
|
content: commentRef.current.value || undefined,
|
||||||
@@ -329,7 +330,7 @@ const Catalog = () => {
|
|||||||
signer,
|
signer,
|
||||||
author: {
|
author: {
|
||||||
...prevPublishCommentOptions.author,
|
...prevPublishCommentOptions.author,
|
||||||
address: signer?.address
|
address: signer?.address,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -386,6 +386,7 @@ const Thread = () => {
|
|||||||
...prevPublishCommentOptions,
|
...prevPublishCommentOptions,
|
||||||
author: {
|
author: {
|
||||||
displayName: nameRef.current.value || undefined,
|
displayName: nameRef.current.value || undefined,
|
||||||
|
address: account?.author.address,
|
||||||
},
|
},
|
||||||
content: commentRef.current.value || undefined,
|
content: commentRef.current.value || undefined,
|
||||||
link: linkRef.current.value || undefined,
|
link: linkRef.current.value || undefined,
|
||||||
@@ -423,7 +424,7 @@ const Thread = () => {
|
|||||||
signer,
|
signer,
|
||||||
author: {
|
author: {
|
||||||
...prevPublishCommentOptions.author,
|
...prevPublishCommentOptions.author,
|
||||||
address: signer?.address
|
address: signer?.address,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user