Skip to content

Commit 9461824

Browse files
authored
Fix Provider/Context filter to use OR instead of AND (#221)
1 parent 1c4a5a4 commit 9461824

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-grab/src/core/context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export const checkIsSourceComponentName = (name: string): boolean => {
102102
if (checkIsInternalComponentName(name)) return false;
103103
if (!isCapitalized(name)) return false;
104104
if (name.startsWith("Primitive.")) return false;
105-
if (name.includes("Provider") && name.includes("Context")) return false;
105+
if (name.includes("Provider") || name.includes("Context")) return false;
106106
return true;
107107
};
108108

0 commit comments

Comments
 (0)