Skip to content

Commit

Permalink
chore(trace-viewer): format negative duration as - (#30840)
Browse files Browse the repository at this point in the history
  • Loading branch information
yury-s committed May 17, 2024
1 parent b375f10 commit dcaded5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/web/src/uiUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export function useMeasure<T extends Element>() {
}

export function msToString(ms: number): string {
if (!isFinite(ms))
if (ms < 0 || !isFinite(ms))
return '-';

if (ms === 0)
Expand Down

0 comments on commit dcaded5

Please sign in to comment.