fix undefined on mobile

This commit is contained in:
Tom
2023-05-26 21:09:45 +02:00
parent b1db4f1776
commit 24e1e9d9d8
5 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -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} />