浏览代码

fix NaN issue

Signed-off-by: shanghaikid <jiangruiyi@gmail.com>
shanghaikid 1 年之前
父节点
当前提交
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=')