From 3a0c50566b757fd9fb95332358b0845b63460a72 Mon Sep 17 00:00:00 2001 From: ekzyis <27162016+ekzyis@users.noreply.github.com> Date: Sat, 30 Dec 2023 21:40:06 +0100 Subject: [PATCH] Fix TypeError (reading 'moderated') (#722) Co-authored-by: ekzyis --- components/post.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/post.js b/components/post.js index 960bde79..1fe55074 100644 --- a/components/post.js +++ b/components/post.js @@ -103,7 +103,7 @@ export function PostForm ({ type, sub, children }) { setErrorMessage(undefined)} dismissible> {errorMessage} } - + {postButtons}
@@ -170,7 +170,7 @@ export default function Post ({ sub }) { } - hint={sub.moderated && 'this territory is moderated'} + hint={sub?.moderated && 'this territory is moderated'} />}