Fix post content not updating when changed

This commit is contained in:
Lim Chee Aun 2024-02-16 17:36:46 +08:00
parent b7a79c8fdd
commit 2f94cb34f6

View file

@ -137,9 +137,9 @@ const PostContent = memo(
); );
}, },
(oldProps, newProps) => { (oldProps, newProps) => {
const { content: oldContent } = oldProps; const { post: oldPost } = oldProps;
const { content: newContent } = newProps; const { post: newPost } = newProps;
return oldContent === newContent; return oldPost.content === newPost.content;
}, },
); );