Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjastrzebski committed Jan 9, 2025
1 parent 1f76162 commit e2cb5de
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/helpers/format-element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,6 @@ export function formatElementType(type: ElementType): string {
return type.displayName ?? type.name;
}

Check warning on line 58 in src/helpers/format-element.ts

View check run for this annotation

Codecov / codecov/patch

src/helpers/format-element.ts#L57-L58

Added lines #L57 - L58 were not covered by tests

// if (typeof type === 'object') {
// console.log('OBJECT', type);
// }

if (typeof type === 'object' && 'type' in type) {
// @ts-expect-error: despite typing this can happen for class components, e.g. HOCs
const nestedType = formatElementType(type.type);
Expand Down

0 comments on commit e2cb5de

Please sign in to comment.