summaryrefslogtreecommitdiffstats
path: root/web/react/components/post.jsx
diff options
context:
space:
mode:
authorJoramWilander <jwawilander@gmail.com>2015-11-12 11:19:59 -0500
committerJoramWilander <jwawilander@gmail.com>2015-11-12 11:19:59 -0500
commit50815f9be7195d736debd6bcd9d300dd95bbc738 (patch)
treed6060dce1cf036285019eac6ccba1ff07df6ad80 /web/react/components/post.jsx
parent13a251a5ee940383e5a026284275b1f31fb476df (diff)
downloadchat-50815f9be7195d736debd6bcd9d300dd95bbc738.tar.gz
chat-50815f9be7195d736debd6bcd9d300dd95bbc738.tar.bz2
chat-50815f9be7195d736debd6bcd9d300dd95bbc738.zip
Rename areStatesEqual to areObjectsEqual and make it more comprehensive and accurate.
Diffstat (limited to 'web/react/components/post.jsx')
-rw-r--r--web/react/components/post.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/react/components/post.jsx b/web/react/components/post.jsx
index c3c5b3e0b..2b9586345 100644
--- a/web/react/components/post.jsx
+++ b/web/react/components/post.jsx
@@ -77,7 +77,7 @@ export default class Post extends React.Component {
this.forceUpdate();
}
shouldComponentUpdate(nextProps) {
- if (!utils.areStatesEqual(nextProps.post, this.props.post)) {
+ if (!utils.areObjectsEqual(nextProps.post, this.props.post)) {
return true;
}