Skip to content

Commit b5f8daf

Browse files
committed
Explicitly check for false as output from the filter function
1 parent b41556f commit b5f8daf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/tracker-core/src/core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ export function trackerCore(configuration: CoreConfiguration = {}): TrackerCore
407407
// Call the filter on plugins to determine if the event should be tracked
408408
const skip = corePlugins.find((plugin) => {
409409
try {
410-
return plugin.filter && !plugin.filter(pb.build());
410+
return plugin.filter && plugin.filter(pb.build()) === false;
411411
} catch (ex) {
412412
LOG.error('Plugin filter', ex);
413413
return false;

0 commit comments

Comments
 (0)