fix account address update after using signer

This commit is contained in:
plebeius.eth
2023-08-01 14:48:47 +02:00
parent 4068bde896
commit a7a7001542
4 changed files with 8 additions and 4 deletions
+2 -1
View File
@@ -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,
}, },
}; };
+2 -1
View File
@@ -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,
}, },
}; };
+2 -1
View File
@@ -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,
}, },
}; };
+2 -1
View File
@@ -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,
}, },
}; };