Skip to content

Commit fcf5c26

Browse files
committed
Merge pull request #8 from canvaspixels/patch-1
Update FilterMonitor.js
2 parents 26d1197 + 2bb7ef4 commit fcf5c26

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/FilterMonitor.js

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

13-
isFiltered(action) {
13+
isFiltered(actionType) {
14+
var type = actionType || '';
1415
return (
15-
this.props.whitelist && action.match(this.props.whitelist.join('|')) ||
16-
this.props.blacklist && !action.match(this.props.blacklist.join('|'))
16+
this.props.whitelist && type.match(this.props.whitelist.join('|')) ||
17+
this.props.blacklist && !type.match(this.props.blacklist.join('|'))
1718
);
1819
}
1920

0 commit comments

Comments
 (0)