Fix unknown threadgates causing crashes (#7692)

* fix unknown threadgates

* don't fuck with the styles
This commit is contained in:
Samuel Newman
2025-02-07 22:56:37 +00:00
committed by GitHub
parent 7d6adb416a
commit 98b7e95b46
+6 -1
View File
@@ -209,7 +209,12 @@ function Rules({
a.flex_wrap,
t.atoms.text_contrast_medium,
]}>
{settings[0].type === 'everybody' ? (
{settings.length === 0 ? (
<Trans>
This post has an unknown type of threadgate on it. Your app may be
out of date.
</Trans>
) : settings[0].type === 'everybody' ? (
<Trans>Everybody can reply to this post.</Trans>
) : settings[0].type === 'nobody' ? (
<Trans>Replies to this post are disabled.</Trans>