Fix getTime

This commit is contained in:
Xavier Carpentier
2019-01-28 10:17:51 +01:00
committed by GitHub
parent 8296bd3e03
commit 2c915f0281

View File

@@ -37,8 +37,8 @@ export default class Message extends React.Component {
shouldComponentUpdate(nextProps) {
const next = nextProps.currentMessage;
const current = this.props.currentMessage;
const nextCreatedAt = next.createdAt && next.createdAt.getTime();
const currentCreatedAt = current.createdAt && current.createdAt.getTime();
const nextCreatedAt = next.createdAt && next.createdAt;
const currentCreatedAt = current.createdAt && current.createdAt;
return (
next.send !== current.send ||
next.received !== current.received ||