diff --git a/src/components/post-mobile/post-menu-mobile/post-menu-mobile.tsx b/src/components/post-mobile/post-menu-mobile/post-menu-mobile.tsx
index 5756654f..9764cbb8 100644
--- a/src/components/post-mobile/post-menu-mobile/post-menu-mobile.tsx
+++ b/src/components/post-mobile/post-menu-mobile/post-menu-mobile.tsx
@@ -148,16 +148,23 @@ const PostMenuMobile = ({ post }: { post: Comment }) => {
const { getReferenceProps, getFloatingProps } = useInteractions([click, dismiss, role]);
const headingId = useId();
+ const handleMenuClick = () => {
+ if (cid) {
+ setIsMenuOpen((prev) => !prev);
+ }
+ };
+
const handleClose = () => setIsMenuOpen(false);
const isInBoardView = isBoardView(useLocation().pathname, useParams());
return (
<>
-
setIsMenuOpen((prev) => !prev)} ref={refs.setReference} {...getReferenceProps()}>
+
...
{isMenuOpen &&
+ cid &&
createPortal(
@@ -171,7 +178,7 @@ const PostMenuMobile = ({ post }: { post: Comment }) => {
,
document.body,
)}
- {(isAccountMod || isAccountCommentAuthor) && (
+ {(isAccountMod || isAccountCommentAuthor) && cid && (