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

Commit

Permalink
Use Anonymous as a fallback for HoC naming
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinGrandon authored and fusion-bot[bot] committed Jan 3, 2019
1 parent 9873729 commit f863658
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export function withRPCRedux(
return React.createElement(Component, props);
}
}
const displayName = Component.displayName || Component.name;
const displayName = Component.displayName || Component.name || 'Anonymous';
withRPCRedux.displayName = 'WithRPCRedux' + '(' + displayName + ')';
withRPCRedux.contextTypes = {
rpc: PropTypes.object.isRequired,
Expand Down

0 comments on commit f863658

Please sign in to comment.