mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix(post): prevent edit menu checkbox from being interactable while post is loading
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user