diff --git a/src/components/Charts/ChartCard/index.js b/src/components/Charts/ChartCard/index.js index c7875b06..c3ee1865 100644 --- a/src/components/Charts/ChartCard/index.js +++ b/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':