소스 검색

Update src/utils.ts

Lipis 4 년 전
부모
커밋
57432b9779
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/utils.ts

+ 2 - 2
src/utils.ts

@@ -381,8 +381,8 @@ export const getVersion = () => {
   );
 };
 
-export const formatTime = (time: number): string => {
-  return time < 1000 ? `${time} ms` : `${(time / 1000).toFixed(1)} s`;
+export const formatTime = (mseconds: number): string => {
+  return mseconds < 1000 ? `${time} ms` : `${(mseconds / 1000).toFixed(1)} s`;
 };
 // Adapted from https://github.com/Modernizr/Modernizr/blob/master/feature-detects/emoji.js
 export const supportsEmoji = () => {