Skip to content

Commit

Permalink
Improved Profiler tooltip confusing/misleading wording (#18523)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Vaughn committed Apr 7, 2020
1 parent e69ca31 commit 32621a3
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default function HoveredFiberInfo({fiberData}: Props) {
rootID: ((rootID: any): number),
});

let renderDurationInfo;
let renderDurationInfo = null;
let i = 0;
for (i = 0; i < commitIndices.length; i++) {
const commitIndex = commitIndices[i];
Expand Down Expand Up @@ -67,9 +67,7 @@ export default function HoveredFiberInfo({fiberData}: Props) {
<div className={styles.Component}>{name}</div>
</div>
<div className={styles.Content}>
{renderDurationInfo || (
<div>Did not render during this profiling session.</div>
)}
{renderDurationInfo || <div>Did not render.</div>}
<WhatChanged fiberID={((id: any): number)} />
</div>
</Fragment>
Expand Down

0 comments on commit 32621a3

Please sign in to comment.