diff --git a/src/components/postView/view/postDisplayView.tsx b/src/components/postView/view/postDisplayView.tsx index 24f8b6500..15e08f1e9 100644 --- a/src/components/postView/view/postDisplayView.tsx +++ b/src/components/postView/view/postDisplayView.tsx @@ -67,6 +67,8 @@ const PostDisplayView = ({ const [tags, setTags] = useState([]); const [postBodyHeight, setPostBodyHeight] = useState(0); + const [animate, setAnimate] = useState(true); //TODO: remove test code + // Component Life Cycles useEffect(() => { if (isLoggedIn && get(currentAccount, 'name') && !isNewPost) { @@ -75,6 +77,10 @@ const PostDisplayView = ({ pointsTy: PointActivityIds.VIEW_POST, }); } + + setTimeout(()=>{ + setAnimate(false); + }, 500) }, []); useEffect(() => { @@ -254,7 +260,7 @@ const PostDisplayView = ({ {parentPost && } - {!post ? ( + {!post || animate ? ( //TODO: remove test code ) : ( { const [author, setAuthor] = useState(params.content?.author || params.author); const [permlink, setPermlink] = useState(params.content?.permlink || params.permlink); - const getPostQuery = postQueries.useGetPostQuery(author, permlink, params.content); + const getPostQuery = postQueries.useGetPostQuery(author, permlink);//, params.content); const getParentPostQuery = postQueries.useGetPostQuery(); useEffect(()=>{