diff --git a/src/components/Charts/ChartCard/index.js b/src/components/Charts/ChartCard/index.js index c7875b06e2788fcd385daff879b820fc560a6a5e..c3ee1865eebea037cdd7302d00d4f93f9d56af33 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':