Skip to content

Commit

Permalink
[react devtools][easy] Fix code highlighting in VSCode (#25155)
Browse files Browse the repository at this point in the history
* Minor change that fixes code highlighting in VSCode in a particular file
  • Loading branch information
rbalicki2 authored and rickhanlonii committed Oct 5, 2022
1 parent bf5faef commit 02ace21
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/react-devtools-shared/src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,9 @@ export function getWrappedDisplayName(
wrapperName: string,
fallbackName?: string,
): string {
const displayName = (outerType: any).displayName;
return (
(outerType: any).displayName ||
displayName ||
`${wrapperName}(${getDisplayName(innerType, fallbackName)})`
);
}
Expand Down

0 comments on commit 02ace21

Please sign in to comment.