Przeglądaj źródła

Fix undefined type

Wei Zhu 7 lat temu
rodzic
commit
c864630c19
1 zmienionych plików z 1 dodań i 1 usunięć
  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':