Skip to content

Commit

Permalink
[fixed] Use more correct children invariant
Browse files Browse the repository at this point in the history
  • Loading branch information
caseywebdev committed Feb 13, 2015
1 parent d69f1c1 commit 585d8ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/Routing.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function createRoute(element, parentRoute, namedRoutes) {
);

invariant(
props.children == null,
React.Children.count(props.children) === 0,
'<NotFoundRoute> must not have children'
);

Expand All @@ -111,7 +111,7 @@ function createRoute(element, parentRoute, namedRoutes) {
);

invariant(
props.children == null,
React.Children.count(props.children) === 0,
'<DefaultRoute> must not have children'
);

Expand Down

0 comments on commit 585d8ec

Please sign in to comment.