Skip to content

Commit

Permalink
Fix unknown threadgates causing crashes (#7692)
Browse files Browse the repository at this point in the history
* fix unknown threadgates

* don't fuck with the styles
  • Loading branch information
mozzius authored Feb 7, 2025
1 parent 7d6adb4 commit 98b7e95
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/WhoCanReply.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 98b7e95

Please sign in to comment.