Skip to content

Commit f0befbd

Browse files
Louis KuczykowskiLouis Kuczykowski
authored andcommitted
A single typo was causing the bug in ticket RL-27. Fixed the typo and works as intended
1 parent 972639e commit f0befbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ export class Parser {
419419
// Case for finding components passed in as props e.g. <Route component={App} />
420420
} else if (
421421
astTokens[i].type.label === 'jsxName' &&
422-
(astTokens[i].value === 'component' ||
422+
(astTokens[i].value === 'Component' ||
423423
astTokens[i].value === 'children') &&
424424
importsObj[astTokens[i + 3].value]
425425
) {

0 commit comments

Comments
 (0)