Skip to content
This repository was archived by the owner on May 17, 2019. It is now read-only.

Commit f863658

Browse files
KevinGrandonfusion-bot[bot]
authored andcommitted
Use Anonymous as a fallback for HoC naming
#160
1 parent 9873729 commit f863658

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hoc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export function withRPCRedux(
7474
return React.createElement(Component, props);
7575
}
7676
}
77-
const displayName = Component.displayName || Component.name;
77+
const displayName = Component.displayName || Component.name || 'Anonymous';
7878
withRPCRedux.displayName = 'WithRPCRedux' + '(' + displayName + ')';
7979
withRPCRedux.contextTypes = {
8080
rpc: PropTypes.object.isRequired,

0 commit comments

Comments
 (0)