feat(reply): add floating quote preview

This commit is contained in:
Tom (plebeius.eth)
2024-06-05 22:18:45 +02:00
parent 1911b623d9
commit b44fb15078
7 changed files with 115 additions and 21 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ interface EditCommentPrivileges {
}
const useEditCommentPrivileges = ({ commentAuthorAddress, subplebbitAddress }: EditCommentPrivileges) => {
const accountAuthorAddress = useAccount().author?.address;
const accountAuthorAddress = useAccount()?.author?.address;
const { roles } = useSubplebbit({ subplebbitAddress }) || {};
const commentAuthorRole = roles?.[commentAuthorAddress]?.role;