Wei Zhu 7 лет назад
Родитель
Сommit
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':