fix(post): prevent edit menu checkbox from being interactable while post is loading

This commit is contained in:
Tom (plebeius.eth)
2025-02-01 16:25:52 +01:00
parent ec61182f6c
commit 96794a0c1e
+1 -1
View File
@@ -22,7 +22,7 @@ const useAuthorPrivileges = ({ commentAuthorAddress, subplebbitAddress, postCid
const accountAuthorRole = roles?.[accountAuthorAddress]?.role;
const isAccountMod = accountAuthorRole === 'admin' || accountAuthorRole === 'owner' || accountAuthorRole === 'moderator';
let isAccountCommentAuthor = accountAuthorAddress === commentAuthorAddress;
let isAccountCommentAuthor = postCid && accountAuthorAddress === commentAuthorAddress;
if (!isAccountCommentAuthor && anonMode) {
const addressSigner = getAddressSigner(commentAuthorAddress);