diff --git a/client/src/App.jsx b/client/src/App.jsx index 0cd53c0..6630177 100644 --- a/client/src/App.jsx +++ b/client/src/App.jsx @@ -266,7 +266,6 @@ function App() { const handleShowViewPost = useCallback(async ({ contentId }) => { const post = await Post.read(contentId); - console.log('handleShowViewPost, read', { post }); setViewPost(post); setShowViewPost(true); }, [setViewPost, setShowViewPost]); diff --git a/client/src/components/posts/ViewPostModal.jsx b/client/src/components/posts/ViewPostModal.jsx index 69f3903..05f88ec 100644 --- a/client/src/components/posts/ViewPostModal.jsx +++ b/client/src/components/posts/ViewPostModal.jsx @@ -1,13 +1,12 @@ import Button from 'react-bootstrap/Button'; import Modal from 'react-bootstrap/Modal'; import PropTypes from 'prop-types'; -import { useMemo } from 'react'; function ViewPostModal({ show, setShow, title, post, }) { const handleClose = () => setShow(false); - const { content, author } = useMemo(() => post, [post]); + const { content, author } = post; return ( diff --git a/client/src/components/work-contracts/WorkRequests.jsx b/client/src/components/work-contracts/WorkRequests.jsx index 8a480cd..60f7740 100644 --- a/client/src/components/work-contracts/WorkRequests.jsx +++ b/client/src/components/work-contracts/WorkRequests.jsx @@ -134,7 +134,6 @@ function WorkRequests({ const handleShowViewRequestModal = async (request) => { const post = await Post.read(request.requestContentId); - console.log('show post modal', { post }); setViewRequest(post); setShowViewRequestModal(true); };