fix(subplebbit): subplebbit could erroneously appear offline while publishing a post

This commit is contained in:
Tom (plebeius.eth)
2025-01-28 19:04:57 +01:00
parent 6afeeb02ff
commit 48a8046486
+3 -1
View File
@@ -401,7 +401,9 @@ const PostForm = () => {
const [showForm, setShowForm] = useState(false);
const subplebbit = useSubplebbit({ subplebbitAddress: params?.subplebbitAddress });
const accountComment = useAccountComment({ commentIndex: params?.accountCommentIndex as any });
const subplebbitAddress = params?.subplebbitAddress || accountComment?.subplebbitAddress;
const subplebbit = useSubplebbit({ subplebbitAddress });
const { isOffline, isOnlineStatusLoading, offlineTitle } = useIsSubplebbitOffline(subplebbit);
return (