From 60d3bf1718c4d6ebac590a98b8b3676cd31f757e Mon Sep 17 00:00:00 2001 From: Aakansha Doshi Date: Sun, 7 Feb 2021 20:44:42 +0530 Subject: [PATCH] fix --- src/utils.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/utils.ts b/src/utils.ts index 54969c986..09f634e62 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -382,7 +382,9 @@ export const getVersion = () => { }; export const formatTime = (mseconds: number): string => { - return mseconds < 1000 ? `${time} ms` : `${(mseconds / 1000).toFixed(1)} s`; + return mseconds < 1000 + ? `${mseconds} ms` + : `${(mseconds / 1000).toFixed(1)} s`; }; // Adapted from https://github.com/Modernizr/Modernizr/blob/master/feature-detects/emoji.js export const supportsEmoji = () => {