Skip to content

Commit 8b0f353

Browse files
committed
Internal: rename isFiltered function to reflect the correct meaning
1 parent 6921fda commit 8b0f353

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/FilterMonitor.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default class FilterMonitor extends Component {
1010
blacklist: PropTypes.array
1111
};
1212

13-
isFiltered(actionType) {
13+
isNotFiltered(actionType) {
1414
const type = actionType || '';
1515
return (
1616
this.props.whitelist && type.match(this.props.whitelist.join('|')) ||
@@ -19,7 +19,7 @@ export default class FilterMonitor extends Component {
1919
}
2020

2121
render() {
22-
const {
22+
let {
2323
whitelist, blacklist, monitorState, children,
2424
stagedActionIds, computedStates,
2525
...rest
@@ -29,7 +29,7 @@ export default class FilterMonitor extends Component {
2929

3030
if (whitelist || blacklist) {
3131
stagedActionIds.forEach((id, idx) => {
32-
if (this.isFiltered(rest.actionsById[id].action.type)) {
32+
if (this.isNotFiltered(rest.actionsById[id].action.type)) {
3333
filteredStagedActionIds.push(id);
3434
filteredComputedStates.push(computedStates[idx]);
3535
}

0 commit comments

Comments
 (0)