Skip to content
This repository has been archived by the owner on Oct 1, 2019. It is now read-only.

Commit

Permalink
Use non-reducible displayName property of 'connect' container
Browse files Browse the repository at this point in the history
  • Loading branch information
artkravchenko committed Jul 6, 2017
1 parent 01ba256 commit a9582aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/router.js
@@ -1,7 +1,7 @@
export function getRouteName(route) {
const component = route.component;

if (component.name === 'Connect') {
if (component.displayName.startsWith('Connect')) {
const wrapped = component.WrappedComponent;
return wrapped.displayName || wrapped.name;
}
Expand Down

0 comments on commit a9582aa

Please sign in to comment.