From bcb9280cd1340888259484b47b69121d47df2152 Mon Sep 17 00:00:00 2001 From: patientayo Date: Tue, 12 Jun 2018 16:25:34 +0800 Subject: [PATCH] fix: waterwave doesn't render when precent=0 --- src/components/Charts/WaterWave/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Charts/WaterWave/index.js b/src/components/Charts/WaterWave/index.js index 5b463ad5..70938427 100644 --- a/src/components/Charts/WaterWave/index.js +++ b/src/components/Charts/WaterWave/index.js @@ -40,7 +40,7 @@ export default class WaterWave extends PureComponent { const data = percent / 100; const self = this; - if (!this.node || !data) { + if (!this.node || (data !== 0 && !data)) { return; } -- GitLab