Use strict equality to distinguish 0 from an empty string

This commit is contained in:
tomracia 2017-05-28 15:16:47 +02:00
parent af985d17f9
commit 8b9e7302ea

View File

@ -14,7 +14,7 @@ export default class ActionLogger extends React.Component {
action.data.args = action.data.args.map(arg => JSON.parse(arg));
const actions = [...this.state.actions];
const previous = actions.length && actions[0];
if (previous && deepEqual(previous.data, action.data)) {
if (previous && deepEqual(previous.data, action.data, { strict: true })) {
previous.count++;
} else {
action.count = 1;