Skip to content

Commit

Permalink
Fixed displayName extraction in getReactInfo (#10618)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist authored Oct 4, 2024
1 parent 7142c55 commit 6d30a3e
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 6d30a3e

Please sign in to comment.