소스 검색

Fix undefined type

Wei Zhu 8 년 전
부모
커밋
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':