Kaynağa Gözat

Fix undefined type

Wei Zhu 7 yıl önce
ebeveyn
işleme
c864630c19
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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 => {
 const renderTotal = total => {
   let totalDom;
   let totalDom;
   switch (typeof total) {
   switch (typeof total) {
-    case undefined:
+    case 'undefined':
       totalDom = null;
       totalDom = null;
       break;
       break;
     case 'function':
     case 'function':