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