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,
|
||||
author: {
|
||||
displayName: nameRef.current.value || undefined,
|
||||
address: account?.author.address,
|
||||
},
|
||||
content: commentRef.current.value || undefined,
|
||||
link: linkRef.current.value || undefined,
|
||||
@@ -215,7 +216,7 @@ const ReplyModal = ({ isOpen, closeModal }) => {
|
||||
signer,
|
||||
author: {
|
||||
...prevPublishCommentOptions.author,
|
||||
address: signer?.address
|
||||
address: signer?.address,
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@@ -445,6 +445,7 @@ const Board = () => {
|
||||
...prevPublishCommentOptions,
|
||||
author: {
|
||||
displayName: nameRef.current.value || undefined,
|
||||
address: account?.author.address,
|
||||
},
|
||||
title: subjectRef.current.value || undefined,
|
||||
content: commentRef.current.value || undefined,
|
||||
@@ -482,7 +483,7 @@ const Board = () => {
|
||||
signer,
|
||||
author: {
|
||||
...prevPublishCommentOptions.author,
|
||||
address: signer?.address
|
||||
address: signer?.address,
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@@ -292,6 +292,7 @@ const Catalog = () => {
|
||||
...prevPublishCommentOptions,
|
||||
author: {
|
||||
displayName: nameRef.current.value || undefined,
|
||||
address: account?.author.address,
|
||||
},
|
||||
title: subjectRef.current.value || undefined,
|
||||
content: commentRef.current.value || undefined,
|
||||
@@ -329,7 +330,7 @@ const Catalog = () => {
|
||||
signer,
|
||||
author: {
|
||||
...prevPublishCommentOptions.author,
|
||||
address: signer?.address
|
||||
address: signer?.address,
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@@ -386,6 +386,7 @@ const Thread = () => {
|
||||
...prevPublishCommentOptions,
|
||||
author: {
|
||||
displayName: nameRef.current.value || undefined,
|
||||
address: account?.author.address,
|
||||
},
|
||||
content: commentRef.current.value || undefined,
|
||||
link: linkRef.current.value || undefined,
|
||||
@@ -423,7 +424,7 @@ const Thread = () => {
|
||||
signer,
|
||||
author: {
|
||||
...prevPublishCommentOptions.author,
|
||||
address: signer?.address
|
||||
address: signer?.address,
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user