chore(trace-viewer): format negative duration as - (#30840)

This commit is contained in:
Yury Semikhatsky 2024-05-17 09:32:57 -07:00 committed by GitHub
parent b375f10778
commit dcaded5255
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)