Skip to content

Commit

Permalink
fix(profiling): wrong UI frames warning (#45293)
Browse files Browse the repository at this point in the history
Should have been !length all along
  • Loading branch information
JonasBa authored Mar 2, 2023
1 parent 046197c commit f7ac6b7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ export function FlamegraphUIFrames({
{/* transaction loads after profile, so we want to show loading even if it's in initial state */}
{profiles.type === 'loading' || profiles.type === 'initial' ? (
<CollapsibleTimelineLoadingIndicator />
) : profiles.type === 'resolved' && uiFrames.frames.length <= 1 ? (
) : profiles.type === 'resolved' && !uiFrames.frames.length ? (
<CollapsibleTimelineMessage>
{t('Profile has no dropped or slow frames')}
</CollapsibleTimelineMessage>
Expand Down

0 comments on commit f7ac6b7

Please sign in to comment.