mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix(board-buttons): use postCid for page number in PostPageStats
This commit is contained in:
@@ -465,7 +465,7 @@ export const PostPageStats = () => {
|
|||||||
const subplebbitAddress = resolvedAddress || accountComment?.subplebbitAddress;
|
const subplebbitAddress = resolvedAddress || accountComment?.subplebbitAddress;
|
||||||
|
|
||||||
const comment = useComment({ commentCid });
|
const comment = useComment({ commentCid });
|
||||||
const postCid = comment?.parentCid ?? commentCid;
|
const postCid = comment?.postCid ?? commentCid;
|
||||||
const post = useComment({ commentCid: postCid });
|
const post = useComment({ commentCid: postCid });
|
||||||
|
|
||||||
const { closed, pinned, replyCount } = post || {};
|
const { closed, pinned, replyCount } = post || {};
|
||||||
|
|||||||
Reference in New Issue
Block a user