fix(feed): "no posts" could appear in an empty board after the user published to it

This commit is contained in:
Tom (plebeius.eth)
2025-02-23 16:30:13 +01:00
parent 628115f198
commit 588d9fbdb0
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -165,7 +165,7 @@ const Board = () => {
const Footer = () => {
let footerContent;
if (feed.length === 0) {
if (combinedFeed.length === 0) {
footerContent = t('no_threads');
}
if (hasMore || (subplebbitAddresses && subplebbitAddresses.length === 0)) {
+2 -2
View File
@@ -187,7 +187,7 @@ const Catalog = () => {
t('not_subscribed_to_any_board')
) : blocked ? (
t('you_have_blocked_this_board')
) : !hasMore && feed.length === 0 ? (
) : !hasMore && combinedFeed.length === 0 ? (
t('no_threads')
) : (
hasMore && <LoadingEllipsis string={loadingStateString} />
@@ -209,7 +209,7 @@ const Catalog = () => {
if (feed.length === 0) {
if (blocked) {
footerContent = t('you_have_blocked_this_board');
} else {
} else if (combinedFeed.length === 0) {
footerContent = t('no_threads');
}
}