Skip to content

Commit 10b6ea6

Browse files
Fix vital value type check
1 parent 3a3435a commit 10b6ea6

File tree

1 file changed

+2
-1
lines changed
  • developer-extension/src/panel/components/tabs/eventsTab

1 file changed

+2
-1
lines changed

developer-extension/src/panel/components/tabs/eventsTab/eventRow.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ const RUM_EVENT_TYPE_COLOR = {
3131
error: 'red',
3232
long_task: 'yellow',
3333
view: 'blue',
34+
transition: 'blue',
3435
resource: 'cyan',
3536
telemetry: 'teal',
3637
vital: 'orange',
@@ -380,7 +381,7 @@ function VitalDescription({ event }: { event: RumVitalEvent }) {
380381
{vitalName}
381382
{vitalDescription && ` - ${vitalDescription}`}
382383
</Emphasis>
383-
{vitalValue !== undefined && (
384+
{typeof vitalValue === 'number' && (
384385
<>
385386
{' '}
386387
of <Emphasis>{formatDuration(vitalValue)}</Emphasis>

0 commit comments

Comments
 (0)