소스 검색

fix NaN issue

Signed-off-by: shanghaikid <jiangruiyi@gmail.com>
shanghaikid 2 년 전
부모
커밋
b9bc987c30
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      client/src/pages/overview/Overview.tsx

+ 1 - 1
client/src/pages/overview/Overview.tsx

@@ -197,7 +197,7 @@ const Overview = () => {
     let duration = 0;
     let unit = '';
     if (rootCoordCreatedTime) {
-      if (rootCoordCreatedTime.lastIndexOf('m=')! == -1) {
+      if (rootCoordCreatedTime.lastIndexOf('m=') !== -1) {
         rootCoordCreatedTime = rootCoordCreatedTime.substring(
           0,
           rootCoordCreatedTime.lastIndexOf('m=')