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:
@@ -225,7 +225,7 @@ const ReplyModal = ({ isOpen, closeModal }) => {
|
||||
</div>
|
||||
<div id="form">
|
||||
<div>
|
||||
{account.author?.displayName ? (
|
||||
{account && account.author && account.author.displayName ? (
|
||||
<input id="name" type="text" value={account.author?.displayName} ref={nameRef} disabled />
|
||||
) : (
|
||||
<input id="name" type="text" placeholder="Anonymous" ref={nameRef} />
|
||||
|
||||
Reference in New Issue
Block a user