From c864630c1900bc5dde64ea1744b195267caf2c9d Mon Sep 17 00:00:00 2001 From: Wei Zhu Date: Wed, 11 Apr 2018 12:03:35 +0800 Subject: [PATCH] Fix undefined type --- src/components/Charts/ChartCard/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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': -- GitLab