Aakansha Doshi 4 năm trước cách đây
mục cha
commit
60d3bf1718
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      src/utils.ts

+ 3 - 1
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 = () => {