mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix(Post Form): use defaultValue for Name when displayName is defined
This commit is contained in:
@@ -839,8 +839,8 @@ const Thread = () => {
|
||||
<tr data-type='Name'>
|
||||
<td id='td-name'>Name</td>
|
||||
<td>
|
||||
{account && account?.author && account?.author.displayName ? (
|
||||
<input name='name' type='text' tabIndex={1} value={account?.author?.displayName} ref={nameRef} disabled />
|
||||
{account?.author.displayName ? (
|
||||
<input name='name' type='text' tabIndex={1} defaultValue={account?.author?.displayName} ref={nameRef} />
|
||||
) : (
|
||||
<input name='name' type='text' placeholder='Anonymous' tabIndex={1} ref={nameRef} />
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user