Skip to content

Commit

Permalink
Fixed displayName extraction in getReactInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist authored Oct 4, 2024
1 parent 7142c55 commit 0d87d3b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function getReactInfo(domNodeId: ObjectId): Data {
) {
const id = __RECORD_REPLAY_ARGUMENTS__.getPersistentId(debugOwner);
if (id) {
const displayName = debugOwner.type.name ?? debugOwner.type.displayName ?? null;
const displayName = debugOwner.type.displayName ?? debugOwner.type.name ?? null;

return [id, displayName];
}
Expand Down

0 comments on commit 0d87d3b

Please sign in to comment.