updated state on comments prop update

This commit is contained in:
noumantahir 2022-03-02 13:54:56 +05:00
parent f69b70ced3
commit 116148b82a

View File

@ -66,6 +66,10 @@ const CommentsContainer = ({
}, [commentCount, selectedFilter]); }, [commentCount, selectedFilter]);
useEffect(() => {
setPropComments(comments);
}, [comments]);
useEffect(() => { useEffect(() => {
const postPath = `${author || ''}/${permlink || ''}`; const postPath = `${author || ''}/${permlink || ''}`;