Skip to content

Commit 11734b1

Browse files
authored
Merge pull request #20 from oslabs-beta/LK/RL-27
A single typo was causing the bug in ticket RL-27. Fixed the typo and…
2 parents 972639e + f0befbd commit 11734b1

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)