update variable

This commit is contained in:
Tom (plebeius.eth)
2024-05-29 10:21:54 +02:00
parent 999c566566
commit 817aae3e79
2 changed files with 2 additions and 2 deletions
@@ -96,7 +96,7 @@ const ViewOnButton = ({ cid, isDescription, isRules, subplebbitAddress, onClose
};
const PostMenuDesktop = ({ post }: { post: Comment }) => {
const { cid, isDescription, isRules, link, subplebbitAddress } = post;
const { cid, isDescription, isRules, link, postCid, subplebbitAddress } = post || {};
const commentMediaInfo = getCommentMediaInfo(post);
const { thumbnail, type, url } = commentMediaInfo || {};
const [menuBtnRotated, setMenuBtnRotated] = useState(false);
@@ -59,7 +59,7 @@ const ViewOnButtons = ({ cid, isDescription, isRules, subplebbitAddress, onClose
};
const PostMenuMobile = ({ post }: { post: Comment }) => {
const { cid, isDescription, isRules, link, subplebbitAddress } = post;
const { cid, isDescription, isRules, link, subplebbitAddress } = post || {};
const commentMediaInfo = getCommentMediaInfo(post);
const { thumbnail, type, url } = commentMediaInfo || {};
const [isMenuOpen, setIsMenuOpen] = useState(false);