Merge pull request #1144 from raciat/strict-equal-action-log

Use strict equality in action logger
This commit is contained in:
Michael Shilman 2017-05-28 23:37:42 +10:00 committed by GitHub
commit 0b48659adf

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;