瀏覽代碼

Fix undefined type

Wei Zhu 7 年之前
父節點
當前提交
c864630c19
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/components/Charts/ChartCard/index.js

+ 1 - 1
src/components/Charts/ChartCard/index.js

@@ -7,7 +7,7 @@ import styles from './index.less';
 const renderTotal = total => {
   let totalDom;
   switch (typeof total) {
-    case undefined:
+    case 'undefined':
       totalDom = null;
       break;
     case 'function':