We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f76162 commit e2cb5deCopy full SHA for e2cb5de
src/helpers/format-element.ts
@@ -57,10 +57,6 @@ export function formatElementType(type: ElementType): string {
57
return type.displayName ?? type.name;
58
}
59
60
- // if (typeof type === 'object') {
61
- // console.log('OBJECT', type);
62
- // }
63
-
64
if (typeof type === 'object' && 'type' in type) {
65
// @ts-expect-error: despite typing this can happen for class components, e.g. HOCs
66
const nestedType = formatElementType(type.type);
0 commit comments