Commit ebf8b00b authored by nikogu's avatar nikogu

fixed when ChartCard total is 0, total has no style...

fixed when ChartCard total is 0, total has no style https://github.com/ant-design/ant-design-pro/issues/329
parent 8feaa32b
......@@ -24,7 +24,7 @@ const ChartCard = ({
</div>
{
// eslint-disable-next-line
total && (<div className={styles.total} dangerouslySetInnerHTML={{ __html: total }} />)
(total !== undefined) && (<div className={styles.total} dangerouslySetInnerHTML={{ __html: total }} />)
}
</div>
</div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment